MCPcopy Create free account
hub / github.com/ElementsProject/elements / FillPSBT

Method FillPSBT

src/wallet/wallet.cpp:2197–2211  ·  view source on GitHub ↗

This function remains for backwards compatibility. It will not succeed in Elements unless everything involved is non-blinded.

Source from the content-addressed store, hash-verified

2195
2196// This function remains for backwards compatibility. It will not succeed in Elements unless everything involved is non-blinded.
2197TransactionError CWallet::FillPSBT(PartiallySignedTransaction& psbtx, bool& complete, int sighash_type, bool sign, bool bip32derivs, bool imbalance_ok, size_t* n_signed, bool include_explicit, bool finalize) const
2198{
2199 complete = false;
2200 TransactionError te;
2201 te = FillPSBTData(psbtx, bip32derivs, include_explicit);
2202 if (te != TransactionError::OK) {
2203 return te;
2204 }
2205 // For backwards compatibility, do not check if amounts balance before signing in this case.
2206 te = SignPSBT(psbtx, complete, sighash_type, sign, imbalance_ok, bip32derivs, n_signed, finalize);
2207 if (te != TransactionError::OK) {
2208 return te;
2209 }
2210 return TransactionError::OK;
2211}
2212
2213SigningResult CWallet::SignMessage(const std::string& message, const PKHash& pkhash, std::string& str_sig) const
2214{

Callers 8

FillPSBTDataMethod · 0.45
SignPSBTMethod · 0.45
fillPSBTMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
bumpfee_helperFunction · 0.45
sendFunction · 0.45
walletprocesspsbtFunction · 0.45
walletcreatefundedpsbtFunction · 0.45

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36