Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 663 Lines • ▼ Show 20 Lines | public: | ||||
* if available return error | * if available return error | ||||
*/ | */ | ||||
TransactionError | TransactionError | ||||
FillPSBT(PartiallySignedTransaction &psbtx, bool &complete, | FillPSBT(PartiallySignedTransaction &psbtx, bool &complete, | ||||
SigHashType sighash_type = SigHashType().withForkId(), | SigHashType sighash_type = SigHashType().withForkId(), | ||||
bool sign = true, bool bip32derivs = true) const; | bool sign = true, bool bip32derivs = true) const; | ||||
/** | /** | ||||
* Submit the transaction to the node's mempool and then relay to peers. | * Add the transaction to the wallet and maybe attempt to broadcast it. | ||||
* Should be called after CreateTransaction unless you want to abort | * Should be called after CreateTransaction. The broadcast flag can be set | ||||
* broadcasting the transaction. | * to false if you want to abort broadcasting the transaction. | ||||
* | * | ||||
* @param[in] tx The transaction to be broadcast. | * @param[in] tx The transaction to be broadcast. | ||||
* @param[in] mapValue key-values to be set on the transaction. | * @param[in] mapValue key-values to be set on the transaction. | ||||
* @param[in] orderForm BIP 70 / BIP 21 order form details to be set on the | * @param[in] orderForm BIP 70 / BIP 21 order form details to be set on the | ||||
* transaction. | * transaction. | ||||
* @param[in] broadcast Whether to broadcast this transaction. | |||||
*/ | */ | ||||
void CommitTransaction( | void CommitTransaction( | ||||
CTransactionRef tx, mapValue_t mapValue, | CTransactionRef tx, mapValue_t mapValue, | ||||
std::vector<std::pair<std::string, std::string>> orderForm); | std::vector<std::pair<std::string, std::string>> orderForm, | ||||
bool broadcast = true); | |||||
/** | /** | ||||
* Pass this transaction to node for mempool insertion and relay to peers | * Pass this transaction to node for mempool insertion and relay to peers | ||||
* if flag set to true | * if flag set to true | ||||
*/ | */ | ||||
bool SubmitTxMemoryPoolAndRelay(const CWalletTx &wtx, | bool SubmitTxMemoryPoolAndRelay(const CWalletTx &wtx, | ||||
std::string &err_string, bool relay) const | std::string &err_string, bool relay) const | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
▲ Show 20 Lines • Show All 432 Lines • Show Last 20 Lines |