diff --git a/libraries/chain/include/graphene/chain/balance_evaluator.hpp b/libraries/chain/include/graphene/chain/balance_evaluator.hpp index 6b2c8b22..5dc976c8 100644 --- a/libraries/chain/include/graphene/chain/balance_evaluator.hpp +++ b/libraries/chain/include/graphene/chain/balance_evaluator.hpp @@ -21,7 +21,6 @@ public: database& d = db(); balance = &op.balance_to_claim(d); - FC_ASSERT(trx_state->signed_by( balance->owner, true /*maybe pts*/ )); FC_ASSERT(op.total_claimed.asset_id == balance->asset_type()); diff --git a/tests/tests/authority_tests.cpp b/tests/tests/authority_tests.cpp index 65b59b00..d2c7e0ac 100644 --- a/tests/tests/authority_tests.cpp +++ b/tests/tests/authority_tests.cpp @@ -381,13 +381,13 @@ BOOST_AUTO_TEST_CASE( genesis_authority ) sign(trx, key_id_type(), genesis_key); BOOST_CHECK_THROW(PUSH_TX( db, trx ), fc::exception); - auto sign = [&] { trx.signatures.clear(); trx.sign(nathan_key_id,nathan_key); }; + auto sign = [&] { trx.signatures.clear(); trx.sign(nathan_key); }; proposal_create_operation pop; pop.proposed_ops.push_back({trx.operations.front()}); pop.expiration_time = db.head_block_time() + global_params.genesis_proposal_review_period*2; pop.fee_paying_account = nathan.id; - trx.operations.back() = pop; + trx.operations = {pop}; sign(); // The review period isn't set yet. Make sure it throws. @@ -480,7 +480,6 @@ BOOST_FIXTURE_TEST_CASE( fired_delegates, database_fixture ) pop.expiration_time = db.head_block_time() + *pop.review_period_seconds * 3; pop.proposed_ops.emplace_back(transfer_operation({asset(),account_id_type(), nathan->id, asset(100000)})); trx.operations.push_back(pop); - sign(trx, key_id_type(), genesis_key); const proposal_object& prop = db.get(PUSH_TX( db, trx ).operation_results.front().get()); proposal_id_type pid = prop.id; BOOST_CHECK(!pid(db).is_authorized_to_execute(db)); diff --git a/tests/tests/block_tests.cpp b/tests/tests/block_tests.cpp index d72d1aba..b0b9e613 100644 --- a/tests/tests/block_tests.cpp +++ b/tests/tests/block_tests.cpp @@ -349,7 +349,6 @@ BOOST_AUTO_TEST_CASE( switch_forks_undo_create ) cop.name = "nathan"; cop.owner = authority(1, key_id_type(), 1); trx.operations.push_back(cop); - trx.sign( key_id_type(), delegate_priv_key ); PUSH_TX( db1, trx ); auto aw = db1.get_global_properties().active_witnesses;