Skip to content

Conversation

@remagpie
Copy link
Contributor

@remagpie remagpie requested a review from sgkim126 December 20, 2019 07:47
@remagpie remagpie force-pushed the create-snapshot branch 2 times, most recently from 139a6b7 to 1f47cee Compare December 20, 2019 09:40
@remagpie remagpie force-pushed the create-snapshot branch 4 times, most recently from 5374ec3 to 472166f Compare December 24, 2019 01:45
@remagpie remagpie force-pushed the create-snapshot branch 4 times, most recently from 2b4afde to 72b69b6 Compare December 25, 2019 19:44
@remagpie remagpie force-pushed the create-snapshot branch 2 times, most recently from 56218cd to 8bfc071 Compare December 26, 2019 05:53
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),
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@remagpie is right.

Copy link
Contributor

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.

@remagpie remagpie requested a review from foriequal0 December 26, 2019 09:10
@remagpie
Copy link
Contributor Author

@foriequal0 Could you answer the questions above?
I'm not sure about the reasons behind the decisions in this PR.

@sgkim126 sgkim126 merged commit 66ec75b into CodeChain-io:master Dec 27, 2019
@sgkim126
Copy link
Contributor

Let me merge it and fix in in the next commit.

@remagpie remagpie deleted the create-snapshot branch December 27, 2019 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants