Extract CTxIn::MAX_SEQUENCE_NONFINAL constant

This commit is contained in:
MarcoFalke
2022-01-10 14:48:13 +01:00
parent 973c390298
commit fa4339e4c1
5 changed files with 32 additions and 12 deletions

View File

@@ -459,7 +459,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
// absolute height locked
tx.vin[0].prevout.hash = txFirst[2]->GetHash();
tx.vin[0].nSequence = CTxIn::SEQUENCE_FINAL - 1;
tx.vin[0].nSequence = CTxIn::MAX_SEQUENCE_NONFINAL;
prevheights[0] = baseheight + 3;
tx.nLockTime = m_node.chainman->ActiveChain().Tip()->nHeight + 1;
hash = tx.GetHash();