Skip to content

Commit

Permalink
Merge bitcoin#10292: Improved efficiency in COutPoint constructors
Browse files Browse the repository at this point in the history
4fbae77 Improved efficiency in COutPoint constructors (Marcos Mayorga)

Tree-SHA512: 1e402d5021a47724b6159af90955f1a5932c383f48e3e704f1c9a52daa18d2dce5d8e1fcd02fae6977eab04ab83fa22872110b821d4c6593d940d9642abc9bcd
  • Loading branch information
sipa authored and PastaPastaPasta committed Jun 11, 2019
1 parent c27394a commit 14dfb8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/primitives/transaction.h
Expand Up @@ -29,8 +29,8 @@ class COutPoint
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;

Expand Down

0 comments on commit 14dfb8d

Please sign in to comment.