diff options
author | Eric Lombrozo <elombrozo@gmail.com> | 2013-01-08 03:42:22 -0800 |
---|---|---|
committer | Eric Lombrozo <elombrozo@gmail.com> | 2013-06-05 23:15:19 -0700 |
commit | 788536f1755c6a9ea81394a2199ca27c9e90944e (patch) | |
tree | 42d681506aba9cd30c10e3f238d401526267f3ae /src/core.h | |
parent | effc2770f50554416e7d7b27f5c5b5cef9489440 (diff) |
Moved CInPoint to core. Removed GetMinFee from CTransaction and made it a regular function in main.
Diffstat (limited to 'src/core.h')
-rw-r--r-- | src/core.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core.h b/src/core.h index 77bd8472ed..bd1ddbf5a4 100644 --- a/src/core.h +++ b/src/core.h @@ -11,6 +11,8 @@ #include <stdio.h> +class CTransaction; + /** An outpoint - a combination of a transaction hash and an index n into its vout */ class COutPoint { @@ -50,4 +52,17 @@ public: } }; +/** An inpoint - a combination of a transaction and an index n into its vin */ +class CInPoint +{ +public: + CTransaction* ptx; + unsigned int n; + + CInPoint() { SetNull(); } + CInPoint(CTransaction* ptxIn, unsigned int nIn) { ptx = ptxIn; n = nIn; } + void SetNull() { ptx = NULL; n = (unsigned int) -1; } + bool IsNull() const { return (ptx == NULL && n == (unsigned int) -1); } +}; + #endif
\ No newline at end of file |