mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 18:41:01 +00:00
Fix an off-by-one: revert rather than revert-to (#3991)
* fix off-by-one in disputes reversion code * bump Rococo spec version
This commit is contained in:
committed by
GitHub
parent
44e9482596
commit
547d166f20
@@ -109,4 +109,5 @@ Frozen: Option<BlockNumber>,
|
||||
|
||||
* `revert_and_freeze(BlockNumber)`:
|
||||
1. If `is_frozen()` return.
|
||||
1. Set `Frozen` to `Some(BlockNumber)` to indicate a rollback to the given block number is necessary.
|
||||
1. Set `Frozen` to `Some(BlockNumber)` to indicate a rollback to the block number.
|
||||
1. Issue a `Revert(BlockNumber + 1)` log to indicate a rollback of the block's child in the header chain, which is the same as a rollback to the block number.
|
||||
|
||||
Reference in New Issue
Block a user