|
|
@ -138,8 +138,8 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_SERIALIZE( READWRITE(FLATDATA(*this)); ) |
|
|
|
IMPLEMENT_SERIALIZE( READWRITE(FLATDATA(*this)); ) |
|
|
|
void SetNull() { nFile = -1; nBlockPos = 0; nTxPos = 0; } |
|
|
|
void SetNull() { nFile = (unsigned int) -1; nBlockPos = 0; nTxPos = 0; } |
|
|
|
bool IsNull() const { return (nFile == -1); } |
|
|
|
bool IsNull() const { return (nFile == (unsigned int) -1); } |
|
|
|
|
|
|
|
|
|
|
|
friend bool operator==(const CDiskTxPos& a, const CDiskTxPos& b) |
|
|
|
friend bool operator==(const CDiskTxPos& a, const CDiskTxPos& b) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -178,8 +178,8 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
CInPoint() { SetNull(); } |
|
|
|
CInPoint() { SetNull(); } |
|
|
|
CInPoint(CTransaction* ptxIn, unsigned int nIn) { ptx = ptxIn; n = nIn; } |
|
|
|
CInPoint(CTransaction* ptxIn, unsigned int nIn) { ptx = ptxIn; n = nIn; } |
|
|
|
void SetNull() { ptx = NULL; n = -1; } |
|
|
|
void SetNull() { ptx = NULL; n = (unsigned int) -1; } |
|
|
|
bool IsNull() const { return (ptx == NULL && n == -1); } |
|
|
|
bool IsNull() const { return (ptx == NULL && n == (unsigned int) -1); } |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -194,8 +194,8 @@ public: |
|
|
|
COutPoint() { SetNull(); } |
|
|
|
COutPoint() { SetNull(); } |
|
|
|
COutPoint(uint256 hashIn, unsigned int nIn) { hash = hashIn; n = nIn; } |
|
|
|
COutPoint(uint256 hashIn, unsigned int nIn) { hash = hashIn; n = nIn; } |
|
|
|
IMPLEMENT_SERIALIZE( READWRITE(FLATDATA(*this)); ) |
|
|
|
IMPLEMENT_SERIALIZE( READWRITE(FLATDATA(*this)); ) |
|
|
|
void SetNull() { hash = 0; n = -1; } |
|
|
|
void SetNull() { hash = 0; n = (unsigned int) -1; } |
|
|
|
bool IsNull() const { return (hash == 0 && n == -1); } |
|
|
|
bool IsNull() const { return (hash == 0 && n == (unsigned int) -1); } |
|
|
|
|
|
|
|
|
|
|
|
friend bool operator<(const COutPoint& a, const COutPoint& b) |
|
|
|
friend bool operator<(const COutPoint& a, const COutPoint& b) |
|
|
|
{ |
|
|
|
{ |
|
|
|