diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2018-04-16 16:10:21 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2018-04-19 20:52:47 -0700 |
commit | 19fc973097ce5d336836c7c6cf4569b4fbaec653 (patch) | |
tree | cd38c19266510d058e2cb3179216735c3925f693 /src/script/ismine.h | |
parent | fb1dfbbec0e57d57188a47406c49487f2145549e (diff) |
Do not expose SigVersion argument to IsMine
Only IsMine's internal code needs this, as part of a recursion into P2SH and P2WSH
scripts. The exposed functions always operate on actual scriptPubKeys and not on
redeemScripts or witness scripts.
Diffstat (limited to 'src/script/ismine.h')
-rw-r--r-- | src/script/ismine.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/ismine.h b/src/script/ismine.h index b46722ecf9..8573bdfbd2 100644 --- a/src/script/ismine.h +++ b/src/script/ismine.h @@ -33,8 +33,8 @@ typedef uint8_t isminefilter; * different SIGVERSION may have different network rules. Currently the only use of isInvalid is indicate uncompressed * keys in SigVersion::WITNESS_V0 script, but could also be used in similar cases in the future */ -isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey, bool& isInvalid, SigVersion = SigVersion::BASE); -isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey, SigVersion = SigVersion::BASE); -isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest, SigVersion = SigVersion::BASE); +isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey, bool& isInvalid); +isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey); +isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest); #endif // BITCOIN_SCRIPT_ISMINE_H |