You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wallet_ismine.h 835B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2009-2010 Satoshi Nakamoto
  2. // Copyright (c) 2009-2014 The Bitcoin Core developers
  3. // Distributed under the MIT software license, see the accompanying
  4. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  5. #ifndef BITCOIN_WALLET_WALLET_ISMINE_H
  6. #define BITCOIN_WALLET_WALLET_ISMINE_H
  7. #include "key.h"
  8. #include "script/standard.h"
  9. class CKeyStore;
  10. class CScript;
  11. /** IsMine() return codes */
  12. enum isminetype
  13. {
  14. ISMINE_NO = 0,
  15. ISMINE_WATCH_ONLY = 1,
  16. ISMINE_SPENDABLE = 2,
  17. ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE
  18. };
  19. /** used for bitflags of isminetype */
  20. typedef uint8_t isminefilter;
  21. isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey);
  22. isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest);
  23. #endif // BITCOIN_WALLET_WALLET_ISMINE_H