Match va_start and va_end calls, pointed by clang-tidy #176
1 changed files with 29 additions and 10 deletions
|
@ -718,7 +718,6 @@ BOOST_AUTO_TEST_CASE(claimtriebranching_expire)
|
|||
BOOST_CHECK(is_best_claim("test",tx3));
|
||||
fixture.DecrementBlocks(1);
|
||||
|
||||
|
||||
// check supports expire and can cause supported bid to lose claim
|
||||
CMutableTransaction tx4 = fixture.MakeClaim(fixture.GetCoinbase(),"test","one",1);
|
||||
CMutableTransaction tx5 = fixture.MakeClaim(fixture.GetCoinbase(),"test","one",2);
|
||||
|
@ -729,6 +728,26 @@ BOOST_AUTO_TEST_CASE(claimtriebranching_expire)
|
|||
CMutableTransaction u3 = fixture.MakeUpdate(tx5,"test","two",ClaimIdHash(tx5.GetHash(),0) ,2);
|
||||
fixture.IncrementBlocks(pclaimTrie->nExpirationTime);
|
||||
BOOST_CHECK(is_best_claim("test",u3));
|
||||
fixture.DecrementBlocks(pclaimTrie->nExpirationTime);
|
||||
BOOST_CHECK(is_best_claim("test",tx4));
|
||||
fixture.DecrementBlocks(1);
|
||||
|
||||
// check updated claims will extend expiration
|
||||
CMutableTransaction tx6 = fixture.MakeClaim(fixture.GetCoinbase(),"test","one",2);
|
||||
fixture.IncrementBlocks(1);
|
||||
BOOST_CHECK(is_best_claim("test",tx6));
|
||||
CMutableTransaction u4 = fixture.MakeUpdate(tx6,"test","two",ClaimIdHash(tx6.GetHash(),0) ,2);
|
||||
fixture.IncrementBlocks(1);
|
||||
BOOST_CHECK(is_best_claim("test",u4));
|
||||
fixture.IncrementBlocks(pclaimTrie->nExpirationTime-1);
|
||||
BOOST_CHECK(is_best_claim("test",u4));
|
||||
fixture.IncrementBlocks(1);
|
||||
BOOST_CHECK(!is_best_claim("test",u4));
|
||||
fixture.DecrementBlocks(1);
|
||||
BOOST_CHECK(is_best_claim("test",u4));
|
||||
fixture.DecrementBlocks(pclaimTrie->nExpirationTime);
|
||||
BOOST_CHECK(is_best_claim("test",tx6));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue