aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorjtimon <jtimon@blockstream.io>2014-10-17 01:58:43 +0200
committerjtimon <jtimon@blockstream.io>2014-10-17 01:58:43 +0200
commite8ea0fd19e16abdcc95a0cdd8f9ae1d348a53168 (patch)
tree315494b1c449ef4972a7854eec4d1b9f9d3afb7e /src/txmempool.h
parente8f6d54f1f58d9a5998e37367b84b427e51e1ad7 (diff)
downloadbitcoin-e8ea0fd19e16abdcc95a0cdd8f9ae1d348a53168.tar.xz
MOVEONLY: CInPoint from core to txmempool
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index c63fd6f590..ad190eea9d 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -52,6 +52,19 @@ public:
class CMinerPolicyEstimator;
+/** An inpoint - a combination of a transaction and an index n into its vin */
+class CInPoint
+{
+public:
+ const CTransaction* ptx;
+ uint32_t n;
+
+ CInPoint() { SetNull(); }
+ CInPoint(const CTransaction* ptxIn, uint32_t nIn) { ptx = ptxIn; n = nIn; }
+ void SetNull() { ptx = NULL; n = (uint32_t) -1; }
+ bool IsNull() const { return (ptx == NULL && n == (uint32_t) -1); }
+};
+
/*
* CTxMemPool stores valid-according-to-the-current-best-chain
* transactions that may be included in the next block.