You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defprune_old_batches(self, app_name: str, remove_border: int) ->None:
"""Helper function to prune old batches from memory."""self.apps[app_name]["batches"] = {
batch["hash"]: batchforbatchinself.apps[app_name]["batches"].values()
ifbatch["state"] !="finalized"orbatch["index"] >remove_border
}
The issue lies in the assignment to self.apps[app_name]["batches"], as routes of the node may want to initialize some batches of transactions and append them to the dictionary using the batch hash as the key.
The text was updated successfully, but these errors were encountered:
The function now looks like this:
The issue lies in the assignment to self.apps[app_name]["batches"], as routes of the node may want to initialize some batches of transactions and append them to the dictionary using the batch hash as the key.
The text was updated successfully, but these errors were encountered: