Skip to content
Snippets Groups Projects
Commit 9e686f4b authored by inso's avatar inso
Browse files

Rollback transactions validated

parent 7fdeb585
No related branches found
No related tags found
No related merge requests found
...@@ -271,6 +271,11 @@ class TxHistory(): ...@@ -271,6 +271,11 @@ class TxHistory():
# We parse only blocks with transactions # We parse only blocks with transactions
if block_number_from in blocks_with_tx: if block_number_from in blocks_with_tx:
# We check if validated transfers should go back to validating...
for t in [t for t in self._transfers if t.metadata['block'] == block_number_from]:
t.state = yield from TxHistory._validation_state(community, t.metadata['block'],
self._block_to)
transfers = yield from self._parse_block(community, block_number_from, transfers = yield from self._parse_block(community, block_number_from,
received_list, self._block_to, received_list, self._block_to,
udid + len(new_transfers)) udid + len(new_transfers))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment