HomePhabricator

Add support for watch-only addresses
c8988460a286Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

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

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Jul 25 2013, 23:06
JaSK <temp@temp.temp>Committed on Jul 2 2014, 13:48
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGdd49e92fb0ca: qt: fix 'opens in testnet mode when presented with a BIP-72 link with no…
Branches
Unknown
Tags
Unknown

Event Timeline

JaSK <temp@temp.temp> committed rSTAGINGc8988460a286: Add support for watch-only addresses (authored by Pieter Wuille <pieter.wuille@gmail.com>).Jul 2 2014, 13:48