MOVEONLY: CInPoint from core to txmempool
This commit is contained in:
parent
e8f6d54f1f
commit
e8ea0fd19e
13
src/core.h
13
src/core.h
@ -61,19 +61,6 @@ public:
|
|||||||
std::string ToString() const;
|
std::string ToString() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 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); }
|
|
||||||
};
|
|
||||||
|
|
||||||
/** An input of a transaction. It contains the location of the previous
|
/** An input of a transaction. It contains the location of the previous
|
||||||
* transaction's output that it claims and a signature that matches the
|
* transaction's output that it claims and a signature that matches the
|
||||||
* output's public key.
|
* output's public key.
|
||||||
|
@ -52,6 +52,19 @@ public:
|
|||||||
|
|
||||||
class CMinerPolicyEstimator;
|
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
|
* CTxMemPool stores valid-according-to-the-current-best-chain
|
||||||
* transactions that may be included in the next block.
|
* transactions that may be included in the next block.
|
||||||
|
Loading…
Reference in New Issue
Block a user