mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-26 04:19:55 +00:00
Revert approval voting (#5438)
* Revert approval-voting subsystem * Approval voting revert encapsulated within 'ops' module * use 'get_stored_blocks' to get lower block height * Fix error message * Optionally shrink/delete stored blocks range * range end number is last block number plus 1 * Apply code review suggestions * Use tristate enum for block range in backend overlay * Add clarification comment * Add comments to private struct
This commit is contained in:
1 parent
9f21ec97b8
commit
8837dc7e6f
7 files changed
+222
-64
No files matched your search
@@ -306,6 +306,9 @@ impl Backend for TestStoreInner {
|
||||
BackendWriteOp::WriteStoredBlockRange(stored_block_range) => {
|
||||
self.stored_block_range = Some(stored_block_range);
|
||||
},
|
||||
BackendWriteOp::DeleteStoredBlockRange => {
|
||||
self.stored_block_range = None;
|
||||
},
|
||||
BackendWriteOp::WriteBlocksAtHeight(h, blocks) => {
|
||||
self.blocks_at_height.insert(h, blocks);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user