aboutsummaryrefslogtreecommitdiff
path: root/src/primitives
diff options
context:
space:
mode:
authorMarcos Mayorga <mm@mm-studios.com>2017-04-28 09:03:51 +0100
committerMarcos Mayorga <marcos@ncrypt.com>2017-04-28 09:33:34 +0100
commit4fbae77929e6344bc49ab60af10a9c5ff21d2cdf (patch)
treee748d9c4ec4684ac8d88d624b712f9ecf0571741 /src/primitives
parent4c924011f535c46b3bc02bef8b7e2a8ad559d78d (diff)
Improved efficiency in COutPoint constructors
Diffstat (limited to 'src/primitives')
-rw-r--r--src/primitives/transaction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h
index d413e8b087..5059030309 100644
--- a/src/primitives/transaction.h
+++ b/src/primitives/transaction.h
@@ -22,8 +22,8 @@ public:
uint256 hash;
uint32_t n;
- COutPoint() { SetNull(); }
- COutPoint(uint256 hashIn, uint32_t nIn) { hash = hashIn; n = nIn; }
+ COutPoint(): n((uint32_t) -1) { }
+ COutPoint(const uint256& hashIn, uint32_t nIn): hash(hashIn), n(nIn) { }
ADD_SERIALIZE_METHODS;