diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-06-01 17:04:03 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-12-08 17:12:19 -0500 |
commit | 0295b44c257fe23f1ad344aff11372d67864f0db (patch) | |
tree | 943c4fd228e7059c68fd81c3edd8c0e5b65421a6 /src/wallet/spend.h | |
parent | 758501b71391136c33b525b1a0109b990d4f463e (diff) | |
download | bitcoin-0295b44c257fe23f1ad344aff11372d67864f0db.tar.xz |
wallet: return CreatedTransactionResult from FundTransaction
Instead of using the output parameters, return CreatedTransactionResult
from FundTransaction in the same way that CreateTransaction does.
Additionally, instead of modifying the original CMutableTransaction, the
result from CreateTransactionInternal is used.
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r-- | src/wallet/spend.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/spend.h b/src/wallet/spend.h index ccadbed1f5..504c078b80 100644 --- a/src/wallet/spend.h +++ b/src/wallet/spend.h @@ -224,7 +224,7 @@ util::Result<CreatedTransactionResult> CreateTransaction(CWallet& wallet, const * Insert additional inputs into the transaction by * calling CreateTransaction(); */ -bool FundTransaction(CWallet& wallet, CMutableTransaction& tx, CAmount& nFeeRet, int& nChangePosInOut, bilingual_str& error, bool lockUnspents, const std::set<int>& setSubtractFeeFromOutputs, CCoinControl); +util::Result<CreatedTransactionResult> FundTransaction(CWallet& wallet, const CMutableTransaction& tx, std::optional<unsigned int> change_pos, bool lockUnspents, const std::set<int>& setSubtractFeeFromOutputs, CCoinControl); } // namespace wallet #endif // BITCOIN_WALLET_SPEND_H |