diff --git a/libraries/chain/protocol/account.cpp b/libraries/chain/protocol/account.cpp index d8d9100f..d9572707 100644 --- a/libraries/chain/protocol/account.cpp +++ b/libraries/chain/protocol/account.cpp @@ -139,8 +139,7 @@ void account_create_operation::validate()const FC_ASSERT( referrer_percent <= GRAPHENE_100_PERCENT ); FC_ASSERT( owner.num_auths() != 0 ); FC_ASSERT( owner.address_auths.size() == 0 ); - // TODO: this asset causes many tests to fail, those tests should probably be updated - //FC_ASSERT( active.num_auths() != 0 ); + FC_ASSERT( active.num_auths() != 0 ); FC_ASSERT( active.address_auths.size() == 0 ); options.validate(); } diff --git a/tests/tests/block_tests.cpp b/tests/tests/block_tests.cpp index 2b096e1e..2c9bbecb 100644 --- a/tests/tests/block_tests.cpp +++ b/tests/tests/block_tests.cpp @@ -303,6 +303,7 @@ BOOST_AUTO_TEST_CASE( undo_pending ) cop.registrar = GRAPHENE_TEMP_ACCOUNT; cop.name = "nathan"; cop.owner = authority(1, init_account_pub_key, 1); + cop.active = cop.owner; trx.operations.push_back(cop); //trx.sign( init_account_priv_key ); PUSH_TX( db, trx ); @@ -357,6 +358,7 @@ BOOST_AUTO_TEST_CASE( switch_forks_undo_create ) cop.registrar = GRAPHENE_TEMP_ACCOUNT; cop.name = "nathan"; cop.owner = authority(1, init_account_pub_key, 1); + cop.active = cop.owner; trx.operations.push_back(cop); PUSH_TX( db1, trx ); @@ -415,6 +417,7 @@ BOOST_AUTO_TEST_CASE( duplicate_transactions ) account_create_operation cop; cop.name = "nathan"; cop.owner = authority(1, init_account_pub_key, 1); + cop.active = cop.owner; trx.operations.push_back(cop); trx.sign( init_account_priv_key ); PUSH_TX( db1, trx, skip_sigs ); @@ -474,6 +477,7 @@ BOOST_AUTO_TEST_CASE( tapos ) cop.registrar = init1.id; cop.name = "nathan"; cop.owner = authority(1, init_account_pub_key, 1); + cop.active = cop.owner; trx.operations.push_back(cop); trx.sign(init_account_priv_key); db1.push_transaction(trx);