Browse Source

Improved efficiency in COutPoint constructors

tags/v0.15.1
Marcos Mayorga 4 years ago
parent
commit
4fbae77929
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/primitives/transaction.h

+ 2
- 2
src/primitives/transaction.h View File

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


Loading…
Cancel
Save