Skip to content

Commit

Permalink
Merge pull request #1089 from AntelopeIO/GH-1081-dry-run-auth-check-3.2
Browse files Browse the repository at this point in the history
[3.2] fix: not fail on signature checks for dry-run txns
  • Loading branch information
heifner authored Apr 26, 2023
2 parents 051a893 + e07fd0a commit e059d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/chain/authorization_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@ namespace eosio { namespace chain {

}

if( !allow_unused_keys || check_but_dont_fail) {
EOS_ASSERT( checker.all_keys_used(), tx_irrelevant_sig,
if( !allow_unused_keys ) {
EOS_ASSERT( checker.all_keys_used() || check_but_dont_fail, tx_irrelevant_sig,
"transaction bears irrelevant signatures from these keys: ${keys}",
("keys", checker.unused_keys()) );
}
Expand Down

0 comments on commit e059d82

Please sign in to comment.