aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-08-25 19:55:52 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-09-28 16:24:30 -0700
commitc091b99379b97cb314c9fa123beabdbc324cf7a4 (patch)
treef1cc720f195b18842831f964a3dd1fc71d29a4ff /src/wallet/rpcwallet.cpp
parentbd355b8db9ffaacaafd10eb14f6b74cf00d8fc06 (diff)
downloadbitcoin-c091b99379b97cb314c9fa123beabdbc324cf7a4.tar.xz
Implement BIP173 addresses and tests
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index ae89b3c0a1..8e2b7d04a8 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -1158,8 +1158,6 @@ public:
explicit Witnessifier(CWallet *_pwallet) : pwallet(_pwallet) {}
- bool operator()(const CNoDestination &dest) const { return false; }
-
bool operator()(const CKeyID &keyID) {
if (pwallet) {
CScript basescript = GetScriptForDestination(keyID);
@@ -1203,6 +1201,9 @@ public:
}
return false;
}
+
+ template<typename T>
+ bool operator()(const T& dest) { return false; }
};
UniValue addwitnessaddress(const JSONRPCRequest& request)