-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consensus: Call AddBlock after all checks pass
We don't want to call the state's AddBlock until we know the block is valid. This avoids subtle bugs if the state is modified in the call(). (in_memory currently modifies the state in the call(), on_disk modifies the state in the async block.) Also moves verification into the async block. Part of #429.
- Loading branch information
Showing
1 changed file
with
35 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters