~ubuntu-branches/debian/stretch/bitcoin/stretch

« back to all changes in this revision

Viewing changes to src/wallet/wallet_ismine.h

  • Committer: Package Import Robot
  • Author(s): Anthony Towns
  • Date: 2016-10-21 17:13:13 UTC
  • mfrom: (1.3.2)
  • Revision ID: package-import@ubuntu.com-20161021171313-7eu2ltpbk0xag3q1
Tags: 0.13.0-0.1
* Non-maintainer upload.
* New upstream release.
* Allow compilation with gcc/g++ 6. (Closes: Bug#835963)
* Additional fixes for openssl 1.1 compatibility. (See Bug#828248)
* Check if -latomic is needed (it is on mips*).
* Remove reproducible build patch, since leveldb build system is
  no longer used in 0.13. (See Bug#791834)
* Update description since the blockchain is much more than "several GB"
  now. (Closes: Bug#835809)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
 
// Copyright (c) 2009-2015 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
 
 
6
 
#ifndef BITCOIN_WALLET_WALLET_ISMINE_H
7
 
#define BITCOIN_WALLET_WALLET_ISMINE_H
8
 
 
9
 
#include "script/standard.h"
10
 
 
11
 
#include <stdint.h>
12
 
 
13
 
class CKeyStore;
14
 
class CScript;
15
 
 
16
 
/** IsMine() return codes */
17
 
enum isminetype
18
 
{
19
 
    ISMINE_NO = 0,
20
 
    //! Indicates that we dont know how to create a scriptSig that would solve this if we were given the appropriate private keys
21
 
    ISMINE_WATCH_UNSOLVABLE = 1,
22
 
    //! Indicates that we know how to create a scriptSig that would solve this if we were given the appropriate private keys
23
 
    ISMINE_WATCH_SOLVABLE = 2,
24
 
    ISMINE_WATCH_ONLY = ISMINE_WATCH_SOLVABLE | ISMINE_WATCH_UNSOLVABLE,
25
 
    ISMINE_SPENDABLE = 4,
26
 
    ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE
27
 
};
28
 
/** used for bitflags of isminetype */
29
 
typedef uint8_t isminefilter;
30
 
 
31
 
isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey);
32
 
isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest);
33
 
 
34
 
#endif // BITCOIN_WALLET_WALLET_ISMINE_H