Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,334 Lines • ▼ Show 20 Lines | public: | ||||
* @note passing nChangePosInOut as -1 will result in setting a random | * @note passing nChangePosInOut as -1 will result in setting a random | ||||
* position | * position | ||||
*/ | */ | ||||
bool CreateTransaction(interfaces::Chain::Lock &locked_chain, | bool CreateTransaction(interfaces::Chain::Lock &locked_chain, | ||||
const std::vector<CRecipient> &vecSend, | const std::vector<CRecipient> &vecSend, | ||||
CTransactionRef &tx, Amount &nFeeRet, | CTransactionRef &tx, Amount &nFeeRet, | ||||
int &nChangePosInOut, std::string &strFailReason, | int &nChangePosInOut, std::string &strFailReason, | ||||
const CCoinControl &coin_control, bool sign = true); | const CCoinControl &coin_control, bool sign = true); | ||||
/** | |||||
* Submit the transaction to the node's mempool and then relay to peers. | |||||
* Should be called after CreateTransaction unless you want to abort | |||||
* broadcasting the transaction. | |||||
* | |||||
* @param tx[in] The transaction to be broadcast. | |||||
* @param mapValue[in] key-values to be set on the transaction. | |||||
* @param orderForm[in] BIP 70 / BIP 21 order form details to be set on the | |||||
* transaction. | |||||
* @param state[in,out] TxValidationState object returning information about | |||||
* whether the transaction was accepted | |||||
*/ | |||||
bool CommitTransaction( | bool 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, | ||||
TxValidationState &state); | TxValidationState &state); | ||||
bool DummySignTx(CMutableTransaction &txNew, const std::set<CTxOut> &txouts, | bool DummySignTx(CMutableTransaction &txNew, const std::set<CTxOut> &txouts, | ||||
bool use_max_sig = false) const { | bool use_max_sig = false) const { | ||||
std::vector<CTxOut> v_txouts(txouts.size()); | std::vector<CTxOut> v_txouts(txouts.size()); | ||||
▲ Show 20 Lines • Show All 396 Lines • Show Last 20 Lines |