Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,091 Lines • ▼ Show 20 Lines | public: | ||||
* Insert additional inputs into the transaction by calling | * Insert additional inputs into the transaction by calling | ||||
* CreateTransaction(); | * CreateTransaction(); | ||||
*/ | */ | ||||
bool FundTransaction(CMutableTransaction &tx, Amount &nFeeRet, | bool FundTransaction(CMutableTransaction &tx, Amount &nFeeRet, | ||||
int &nChangePosInOut, bilingual_str &error, | int &nChangePosInOut, bilingual_str &error, | ||||
bool lockUnspents, | bool lockUnspents, | ||||
const std::set<int> &setSubtractFeeFromOutputs, | const std::set<int> &setSubtractFeeFromOutputs, | ||||
CCoinControl coinControl); | CCoinControl coinControl); | ||||
bool SignTransaction(CMutableTransaction &tx) | // Fetch the inputs and sign with SIGHASH_ALL. | ||||
bool SignTransaction(CMutableTransaction &tx) const | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
// Sign the tx given the input coins and sighash. | |||||
bool SignTransaction(CMutableTransaction &tx, | |||||
const std::map<COutPoint, Coin> &coins, | |||||
SigHashType sighash, | |||||
std::map<int, std::string> &input_errors) const; | |||||
/** | /** | ||||
* Create a new transaction paying the recipients with a set of coins | * Create a new transaction paying the recipients with a set of coins | ||||
* selected by SelectCoins(); Also create the change output, when needed | * selected by SelectCoins(); Also create the change output, when needed | ||||
* @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(const std::vector<CRecipient> &vecSend, | bool CreateTransaction(const std::vector<CRecipient> &vecSend, | ||||
▲ Show 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | public: | ||||
ScriptPubKeyMan *GetScriptPubKeyMan(const OutputType &type, | ScriptPubKeyMan *GetScriptPubKeyMan(const OutputType &type, | ||||
bool internal) const; | bool internal) const; | ||||
//! Get the ScriptPubKeyMan for a script | //! Get the ScriptPubKeyMan for a script | ||||
ScriptPubKeyMan *GetScriptPubKeyMan(const CScript &script) const; | ScriptPubKeyMan *GetScriptPubKeyMan(const CScript &script) const; | ||||
//! Get the ScriptPubKeyMan by id | //! Get the ScriptPubKeyMan by id | ||||
ScriptPubKeyMan *GetScriptPubKeyMan(const uint256 &id) const; | ScriptPubKeyMan *GetScriptPubKeyMan(const uint256 &id) const; | ||||
//! Get all of the ScriptPubKeyMans for a script given additional | |||||
//! information in sigdata (populated by e.g. a psbt) | |||||
std::set<ScriptPubKeyMan *> | |||||
GetScriptPubKeyMans(const CScript &script, SignatureData &sigdata) const; | |||||
//! Get the SigningProvider for a script | //! Get the SigningProvider for a script | ||||
std::unique_ptr<SigningProvider> | std::unique_ptr<SigningProvider> | ||||
GetSigningProvider(const CScript &script) const; | GetSigningProvider(const CScript &script) const; | ||||
std::unique_ptr<SigningProvider> | std::unique_ptr<SigningProvider> | ||||
GetSigningProvider(const CScript &script, SignatureData &sigdata) const; | GetSigningProvider(const CScript &script, SignatureData &sigdata) const; | ||||
//! Get the LegacyScriptPubKeyMan which is used for all types, internal, and | //! Get the LegacyScriptPubKeyMan which is used for all types, internal, and | ||||
//! external. | //! external. | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |