-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(node): remove expect calls in node.rs
node.rs * add 4 variants to NodeError * return Result<_, NodeError> from add_block() and related Node methods. * replace some expect calls with NodeError::Inconsistency * return NodeError::BadMagic error from ::handle_message() * log error in Node::main if receive_message task fails * log error in Node::main if receive_request task fails * log error in Node::main if handle_mined_block task fails * log error and pause tasks in Node::main if try_get_time() fails * replace get_time() with try_get_time() where possible persistence.rs * return Result from closure arg to BlockStorage::read_blocks() util.rs * change EpochError visibility: pub(crate) --> pub
- Loading branch information
Showing
3 changed files
with
91 additions
and
43 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
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