From e07fd0a0c841d3a0b0c9323a807a047aa6ce4d3d Mon Sep 17 00:00:00 2001 From: Pinelliaw Date: Wed, 26 Apr 2023 01:04:02 +0800 Subject: [PATCH] Fix not fail on signature checks for dry-run, include the time it takes for checker.all_keys_used() --- libraries/chain/authorization_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/chain/authorization_manager.cpp b/libraries/chain/authorization_manager.cpp index 7f2b6375dd..4a51e5dc73 100644 --- a/libraries/chain/authorization_manager.cpp +++ b/libraries/chain/authorization_manager.cpp @@ -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()) ); }