diff options
| author | Pieter Wuille <[email protected]> | 2013-07-26 01:06:01 +0200 |
|---|---|---|
| committer | JaSK <[email protected]> | 2014-07-02 15:48:37 +0200 |
| commit | c8988460a2865b99ee96da6799d37ac6ccb79d4d (patch) | |
| tree | 359da0335ecd969209daa6f2ef3ddadc157b77f8 /src/rpcclient.cpp | |
| parent | qt: fix 'opens in testnet mode when presented with a BIP-72 link with no fall... (diff) | |
| download | discoin-c8988460a2865b99ee96da6799d37ac6ccb79d4d.tar.xz discoin-c8988460a2865b99ee96da6799d37ac6ccb79d4d.zip | |
Add support for watch-only addresses
Changes:
* Add Add/Have WatchOnly methods to CKeyStore, and implementations
in CBasicKeyStore.
* Add similar methods to CWallet, and support entries for it in
CWalletDB.
* Make IsMine in script/wallet return a new enum 'isminetype',
rather than a boolean. This allows distinguishing between
spendable and unspendable coins.
* Add a field fSpendable to COutput (GetAvailableCoins' return type).
* Mark watchonly coins in listunspent as 'watchonly': true.
* Add 'watchonly' to validateaddress, suppressing script/pubkey/...
in this case.
Based on a patch by Eric Lombrozo.
Conflicts:
src/qt/walletmodel.cpp
src/rpcserver.cpp
src/wallet.cpp
Diffstat (limited to 'src/rpcclient.cpp')
| -rw-r--r-- | src/rpcclient.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp index 501940a73..76c99e7c9 100644 --- a/src/rpcclient.cpp +++ b/src/rpcclient.cpp @@ -72,6 +72,7 @@ static const CRPCConvertParam vRPCConvertParams[] = { "lockunspent", 0 }, { "lockunspent", 1 }, { "importprivkey", 2 }, + { "importaddress", 2 }, { "verifychain", 0 }, { "verifychain", 1 }, { "keypoolrefill", 0 }, |