-
Notifications
You must be signed in to change notification settings - Fork 12
Create snapshots #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create snapshots #19
Conversation
139a6b7 to
1f47cee
Compare
5374ec3 to
472166f
Compare
2b4afde to
72b69b6
Compare
56218cd to
8bfc071
Compare
| fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> { | ||
| match Node::decoded(&self.rlp) { | ||
| Some(node) => write!(f, "{:?}", &node), | ||
| None => write!(f, "{:?}", self.rlp), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When does it become None?
Is it normal that the rlp cannot be decoded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this would happen.
It seems decoded returns None when the rlp is empty, but this should not be happening in the cases that I know of.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@remagpie is right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. Let's leave it for this PR and try to remove it in the next commit.
|
@foriequal0 Could you answer the questions above? |
This is a work-around to the currently order-dependant and non-deterministic initialization of Tendermint ConsensusEngine/Worker.
8bfc071 to
e3865be
Compare
|
Let me merge it and fix in in the next commit. |
Collected from CodeChain-io/codechain#1869 and CodeChain-io/codechain#1875