uia_tests.cpp: Add hardfork logic to issue_whitelist_uia #415
This commit is contained in:
parent
fabe83fbad
commit
cf4efca17f
1 changed files with 7 additions and 4 deletions
|
|
@ -149,10 +149,13 @@ BOOST_AUTO_TEST_CASE( issue_whitelist_uia )
|
||||||
trx.operations.emplace_back(op);
|
trx.operations.emplace_back(op);
|
||||||
set_expiration( db, trx );
|
set_expiration( db, trx );
|
||||||
//Fail because nathan is not whitelisted, but only before hardfork time
|
//Fail because nathan is not whitelisted, but only before hardfork time
|
||||||
GRAPHENE_REQUIRE_THROW(PUSH_TX( db, trx, ~0 ), fc::exception);
|
if( db.head_block_time() <= HARDFORK_415_TIME )
|
||||||
generate_blocks( HARDFORK_415_TIME );
|
{
|
||||||
generate_block();
|
GRAPHENE_REQUIRE_THROW(PUSH_TX( db, trx, ~0 ), fc::exception);
|
||||||
set_expiration( db, trx );
|
generate_blocks( HARDFORK_415_TIME );
|
||||||
|
generate_block();
|
||||||
|
set_expiration( db, trx );
|
||||||
|
}
|
||||||
PUSH_TX( db, trx, ~0 );
|
PUSH_TX( db, trx, ~0 );
|
||||||
|
|
||||||
BOOST_CHECK(nathan_id(db).is_authorized_asset(uia_id(db), db));
|
BOOST_CHECK(nathan_id(db).is_authorized_asset(uia_id(db), db));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue