diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-11-30 16:13:12 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-11-30 16:38:07 -0500 |
commit | 51e2cd322cfc7271af309e3a2243448a2ec0cad4 (patch) | |
tree | 60b67cc4ca0f3a41604fe4fee8f6af54111f983c /src/wallet/wallet.h | |
parent | 81d5af42f4dba5b68a597536cad7f61894dc22a3 (diff) |
Have CalculateMaximumSignedTxSize also compute tx weight
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 69cf6b66a4..c491cb2084 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1321,8 +1321,8 @@ public: // Use DummySignatureCreator, which inserts 71 byte signatures everywhere. // NOTE: this requires that all inputs must be in mapWallet (eg the tx should // be IsAllFromMe). -int64_t CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *wallet, bool use_max_sig = false) EXCLUSIVE_LOCKS_REQUIRED(wallet->cs_wallet); -int64_t CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *wallet, const std::vector<CTxOut>& txouts, bool use_max_sig = false); +std::pair<int64_t, int64_t> CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *wallet, bool use_max_sig = false) EXCLUSIVE_LOCKS_REQUIRED(wallet->cs_wallet); +std::pair<int64_t, int64_t> CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *wallet, const std::vector<CTxOut>& txouts, bool use_max_sig = false); //! Add wallet name to persistent configuration so it will be loaded on startup. bool AddWalletSetting(interfaces::Chain& chain, const std::string& wallet_name); |