mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
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
This commit is contained in:
parent
dd49e92fb0
commit
c8988460a2
16 changed files with 223 additions and 52 deletions
|
|
@ -282,6 +282,7 @@ static const CRPCCommand vRPCCommands[] =
|
|||
{ "getwalletinfo", &getwalletinfo, true, false, true },
|
||||
{ "importprivkey", &importprivkey, false, false, true },
|
||||
{ "importwallet", &importwallet, false, false, true },
|
||||
{ "importaddress", &importaddress, false, false, true },
|
||||
{ "keypoolrefill", &keypoolrefill, true, false, true },
|
||||
{ "listaccounts", &listaccounts, false, false, true },
|
||||
{ "listaddressgroupings", &listaddressgroupings, false, false, true },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue