mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-21 20:28:59 +02:00
psbt: Check sighash types in SignPSBTInput and take sighash as optional
This commit is contained in:
@@ -138,7 +138,7 @@ CTxDestination AddAndGetMultisigDestination(const int required, const std::vecto
|
||||
UniValue DescribeAddress(const CTxDestination& dest);
|
||||
|
||||
/** Parse a sighash string representation and raise an RPC error if it is invalid. */
|
||||
int ParseSighashString(const UniValue& sighash);
|
||||
std::optional<int> ParseSighashString(const UniValue& sighash);
|
||||
|
||||
//! Parse a confirm target option and raise an RPC error if it is invalid.
|
||||
unsigned int ParseConfirmTarget(const UniValue& value, unsigned int max_target);
|
||||
|
||||
Reference in New Issue
Block a user