Bitcoin Core  0.19.99
P2P Digital Currency
Enumerations | Functions
feebumper Namespace Reference

Enumerations

enum  Result {
  Result::OK, Result::INVALID_ADDRESS_OR_KEY, Result::INVALID_REQUEST, Result::INVALID_PARAMETER,
  Result::WALLET_ERROR, Result::MISC_ERROR
}
 

Functions

bool TransactionCanBeBumped (const CWallet &wallet, const uint256 &txid)
 Return whether transaction can be bumped. More...
 
Result CreateTotalBumpTransaction (const CWallet *wallet, const uint256 &txid, const CCoinControl &coin_control, CAmount total_fee, std::vector< std::string > &errors, CAmount &old_fee, CAmount &new_fee, CMutableTransaction &mtx)
 Create bumpfee transaction based on total amount. More...
 
Result CreateRateBumpTransaction (CWallet &wallet, const uint256 &txid, const CCoinControl &coin_control, std::vector< std::string > &errors, CAmount &old_fee, CAmount &new_fee, CMutableTransaction &mtx)
 Create bumpfee transaction based on feerate estimates. More...
 
bool SignTransaction (CWallet &wallet, CMutableTransaction &mtx)
 Sign the new transaction,. More...
 
Result CommitTransaction (CWallet &wallet, const uint256 &txid, CMutableTransaction &&mtx, std::vector< std::string > &errors, uint256 &bumped_txid)
 Commit the bumpfee transaction. More...
 

Enumeration Type Documentation

◆ Result

enum feebumper::Result
strong
Enumerator
OK 
INVALID_ADDRESS_OR_KEY 
INVALID_REQUEST 
INVALID_PARAMETER 
WALLET_ERROR 
MISC_ERROR 

Definition at line 18 of file feebumper.h.

Function Documentation

◆ CommitTransaction()

Result feebumper::CommitTransaction ( CWallet wallet,
const uint256 txid,
CMutableTransaction &&  mtx,
std::vector< std::string > &  errors,
uint256 bumped_txid 
)

Commit the bumpfee transaction.

Returns
success in case of CWallet::CommitTransaction was successful, but sets errors if the tx could not be added to the mempool (will try later) or if the old transaction could not be marked as replaced.

Definition at line 375 of file feebumper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateRateBumpTransaction()

Result feebumper::CreateRateBumpTransaction ( CWallet wallet,
const uint256 txid,
const CCoinControl coin_control,
std::vector< std::string > &  errors,
CAmount old_fee,
CAmount new_fee,
CMutableTransaction mtx 
)

Create bumpfee transaction based on feerate estimates.

Definition at line 280 of file feebumper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateTotalBumpTransaction()

Result feebumper::CreateTotalBumpTransaction ( const CWallet wallet,
const uint256 txid,
const CCoinControl coin_control,
CAmount  total_fee,
std::vector< std::string > &  errors,
CAmount old_fee,
CAmount new_fee,
CMutableTransaction mtx 
)

Create bumpfee transaction based on total amount.

Definition at line 154 of file feebumper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SignTransaction()

bool feebumper::SignTransaction ( CWallet wallet,
CMutableTransaction mtx 
)

Sign the new transaction,.

Returns
false if the tx couldn't be found or if it was impossible to create the signature(s)

Definition at line 369 of file feebumper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TransactionCanBeBumped()

bool feebumper::TransactionCanBeBumped ( const CWallet wallet,
const uint256 txid 
)

Return whether transaction can be bumped.

Definition at line 142 of file feebumper.cpp.

Here is the call graph for this function: