-
Notifications
You must be signed in to change notification settings - Fork 716
Fix 1984 #1985
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
Conversation
… should fill in missing bytes with 0
psq
left a comment
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.
will no longer panic on a bad hash param
src/vm/types/mod.rs
Outdated
| if let Value::Sequence(SequenceData::Buffer(mut buffdata)) = self { | ||
| if buffdata.data.len() <= sz { | ||
| for _ in buffdata.data.len()..sz { | ||
| buffdata.data.push(0u8) |
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.
Since these expect_ functions are basically destructuring routines, it makes more sense for data padding to happen in the caller rather than in this function (a destructuring routine shouldn't mutate the returned data).
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.
Fair enough. Will fix.
PoX: Two reward addresses per block
kantai
left a comment
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.
LGTM! Before performing a chain reset, can you also merge next to master?
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Value::expect_buff(x)should work or buffers with fewer thanxbytes.