Improved efficiency in COutPoint constructors
This commit is contained in:
parent
4c924011f5
commit
4fbae77929
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ public:
|
||||||
uint256 hash;
|
uint256 hash;
|
||||||
uint32_t n;
|
uint32_t n;
|
||||||
|
|
||||||
COutPoint() { SetNull(); }
|
COutPoint(): n((uint32_t) -1) { }
|
||||||
COutPoint(uint256 hashIn, uint32_t nIn) { hash = hashIn; n = nIn; }
|
COutPoint(const uint256& hashIn, uint32_t nIn): hash(hashIn), n(nIn) { }
|
||||||
|
|
||||||
ADD_SERIALIZE_METHODS;
|
ADD_SERIALIZE_METHODS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue