Panic on all commit_block errors

This commit is contained in:
teor 2020-09-23 21:03:58 +10:00
parent 2d183cbff3
commit b264e24cd0
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ queued block (and any of its descendants) can be committed to the state
Try to commit `block` to the non-finalized state. Must succeed, because
`commit_block` is only called when `block` is ready to be committed.
1. If the block is a pre-Sapling block, return an error.
1. If the block is a pre-Sapling block, panic.
2. Search for the first chain where `block.parent` == `chain.tip`. If it exists:
- push `block` onto that chain