Add hardfork logic to transfer_whitelist_uia test #419
This commit is contained in:
parent
65003ba06c
commit
e845def98c
1 changed files with 10 additions and 2 deletions
|
|
@ -268,8 +268,16 @@ BOOST_AUTO_TEST_CASE( transfer_whitelist_uia )
|
||||||
op.amount = advanced.amount(50);
|
op.amount = advanced.amount(50);
|
||||||
trx.operations.back() = op;
|
trx.operations.back() = op;
|
||||||
//Fail because nathan is blacklisted
|
//Fail because nathan is blacklisted
|
||||||
GRAPHENE_REQUIRE_THROW(PUSH_TX( db, trx, ~0 ), transfer_from_account_not_whitelisted );
|
if( db.head_block_time() <= HARDFORK_419_TIME )
|
||||||
|
{
|
||||||
|
// before the hardfork time, it fails because the whitelist check fails
|
||||||
|
GRAPHENE_REQUIRE_THROW(PUSH_TX( db, trx, ~0 ), transfer_from_account_not_whitelisted );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// after the hardfork time, it fails because the fees are not in a whitelisted asset
|
||||||
|
GRAPHENE_REQUIRE_THROW(PUSH_TX( db, trx, ~0 ), fc::exception );
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_TEST_MESSAGE( "Attempting to burn from nathan after blacklisting, should fail" );
|
BOOST_TEST_MESSAGE( "Attempting to burn from nathan after blacklisting, should fail" );
|
||||||
asset_reserve_operation burn;
|
asset_reserve_operation burn;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue