From eaf4f887348a08c620732125ad4430e1a133d434 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sat, 16 Feb 2019 14:18:54 -0800 Subject: Abstract out IsSegWitOutput from utxoupdatepsbt This is not a pure refactor; additional functionality is added in IsSegWitOutput which lets it recurse into P2SH when a SigningProvider is provided that knows about the inner script. --- src/script/sign.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/sign.h') diff --git a/src/script/sign.h b/src/script/sign.h index f746325b90..e5c0329a61 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -232,4 +232,7 @@ void UpdateInput(CTxIn& input, const SignatureData& data); * Solvability is unrelated to whether we consider this output to be ours. */ bool IsSolvable(const SigningProvider& provider, const CScript& script); +/** Check whether a scriptPubKey is known to be segwit. */ +bool IsSegWitOutput(const SigningProvider& provider, const CScript& script); + #endif // BITCOIN_SCRIPT_SIGN_H -- cgit v1.2.3