mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Improve CFeeBumper interface, add comments, make use of std::move
This commit is contained in:
@@ -42,7 +42,7 @@ int64_t CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *pWal
|
||||
|
||||
CFeeBumper::CFeeBumper(const CWallet *pWallet, const uint256 txidIn, int newConfirmTarget, bool specifiedConfirmTarget, CAmount totalFee, bool newTxReplaceable)
|
||||
:
|
||||
txid(txidIn),
|
||||
txid(std::move(txidIn)),
|
||||
nOldFee(0),
|
||||
nNewFee(0)
|
||||
{
|
||||
@@ -229,6 +229,11 @@ CFeeBumper::CFeeBumper(const CWallet *pWallet, const uint256 txidIn, int newConf
|
||||
currentResult = BumpFeeResult::OK;
|
||||
}
|
||||
|
||||
bool CFeeBumper::signTransaction(CWallet *pWallet)
|
||||
{
|
||||
return pWallet->SignTransaction(mtx);
|
||||
}
|
||||
|
||||
bool CFeeBumper::commit(CWallet *pWallet)
|
||||
{
|
||||
AssertLockHeld(pWallet->cs_wallet);
|
||||
|
||||
Reference in New Issue
Block a user