mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Moved CInPoint to core. Removed GetMinFee from CTransaction and made it a regular function in main.
This commit is contained in:
15
src/core.h
15
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
|
||||
Reference in New Issue
Block a user