-
Notifications
You must be signed in to change notification settings - Fork 73
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
fix: not fail on signature checks for dry-run txns #1081
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -559,7 +559,7 @@ namespace eosio { namespace chain { | |
|
||
} | ||
|
||
if( !allow_unused_keys || check_but_dont_fail) { | ||
if( !allow_unused_keys && !check_but_dont_fail) { | ||
EOS_ASSERT( checker.all_keys_used(), tx_irrelevant_sig, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead, I think the
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have resubmitted the code and updated the PR description |
||
"transaction bears irrelevant signatures from these keys: ${keys}", | ||
("keys", checker.unused_keys()) ); | ||
|
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 think the same change should be made at line 548 above, 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.
Thanks.But
EOS_ASSERT
will only throw the error when the first argument is false. Sincecheck_but_dont_fail
should never throw the error when it is true, there is no need to modify at line 548.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.
Oh yes, what was I thinking!