aboutsummaryrefslogtreecommitdiff
path: root/src/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core.h b/src/core.h
index 77bd8472ed..bd1ddbf5a4 100644
--- a/src/core.h
+++ b/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 \ No newline at end of file