From b264e24cd03f5f747f7ca9fd0e2b5f9b794da7d6 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 23 Sep 2020 21:03:58 +1000 Subject: [PATCH] Panic on all commit_block errors --- book/src/dev/rfcs/0005-state-updates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/dev/rfcs/0005-state-updates.md b/book/src/dev/rfcs/0005-state-updates.md index 04ea5aeb8..84260b71e 100644 --- a/book/src/dev/rfcs/0005-state-updates.md +++ b/book/src/dev/rfcs/0005-state-updates.md @@ -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