-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write the Genesis block in the BlockStorage
Move the loading code into a separate load() method, and get rid of the empty() method. Loading should ideally never be done in the constructor. Additionally, this ensures the block storage is in charge of adding the hardcoded genesis block to the storage. The load() method can be used by the Ledger to make sure UTXOs are tracked when the block storage was empty on boot. Fixes #286
- Loading branch information
1 parent
62b75b3
commit 04d8463
Showing
2 changed files
with
32 additions
and
18 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
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