Moved CInPoint to core. Removed GetMinFee from CTransaction and made it a regular function in main.

This commit is contained in:
Eric Lombrozo
2013-01-08 03:42:22 -08:00
parent effc2770f5
commit 788536f175
4 changed files with 23 additions and 23 deletions

View File

@@ -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