aboutsummaryrefslogtreecommitdiff
path: root/src/keystore.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2017-11-30 16:49:04 -0800
committerPieter Wuille <[email protected]>2018-01-09 15:35:27 -0800
commitf37c64e477d679853a4076f2f7888568bb034e90 (patch)
treec89e9c12f55bf306452d8cd20c45a7a81f9fed6e /src/keystore.h
parent[test] Serialize CTransaction with witness by default (diff)
downloaddiscoin-f37c64e477d679853a4076f2f7888568bb034e90.tar.xz
discoin-f37c64e477d679853a4076f2f7888568bb034e90.zip
Implicitly know about P2WPKH redeemscripts
Make CKeyStore automatically known about the redeemscripts necessary for P2SH-P2WPKH (and due to the extra checks in IsMine, also P2WPKH) spending.
Diffstat (limited to 'src/keystore.h')
-rw-r--r--src/keystore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keystore.h b/src/keystore.h
index 0f3b5706f..b8656424b 100644
--- a/src/keystore.h
+++ b/src/keystore.h
@@ -59,6 +59,8 @@ protected:
ScriptMap mapScripts;
WatchOnlySet setWatchOnly;
+ void ImplicitlyLearnRelatedKeyScripts(const CPubKey& pubkey);
+
public:
bool AddKeyPubKey(const CKey& key, const CPubKey &pubkey) override;
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override;