Active key is not required when owner key present
- when updating account there is no need to sign with the active key if the owner has signed. - when updating an account the active key is enough to update the active key.
This commit is contained in:
parent
c527b2d41e
commit
dc8849f23b
3 changed files with 4 additions and 18 deletions
|
|
@ -104,7 +104,10 @@ namespace graphene { namespace chain {
|
||||||
share_type calculate_fee( const fee_parameters_type& k )const;
|
share_type calculate_fee( const fee_parameters_type& k )const;
|
||||||
|
|
||||||
void get_required_owner_authorities( flat_set<account_id_type>& a )const
|
void get_required_owner_authorities( flat_set<account_id_type>& a )const
|
||||||
{ if( owner || active ) a.insert( account ); }
|
{ if( owner ) a.insert( account ); }
|
||||||
|
|
||||||
|
void get_required_active_authorities( flat_set<account_id_type>& a )const
|
||||||
|
{ if( !owner ) a.insert( account ); }
|
||||||
|
|
||||||
void get_impacted_accounts( flat_set<account_id_type>& i )const
|
void get_impacted_accounts( flat_set<account_id_type>& i )const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1217,15 +1217,6 @@ BOOST_AUTO_TEST_CASE( witness_pay_test )
|
||||||
|
|
||||||
} FC_LOG_AND_RETHROW() }
|
} FC_LOG_AND_RETHROW() }
|
||||||
|
|
||||||
/**
|
|
||||||
* Asset Burn Test should make sure that all assets except bitassets
|
|
||||||
* can be burned and all supplies add up.
|
|
||||||
*/
|
|
||||||
BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES( unimp_burn_asset_test, 1 )
|
|
||||||
BOOST_AUTO_TEST_CASE( unimp_burn_asset_test )
|
|
||||||
{
|
|
||||||
BOOST_FAIL( "not implemented" );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This test demonstrates how using the call_order_update_operation to
|
* This test demonstrates how using the call_order_update_operation to
|
||||||
|
|
|
||||||
|
|
@ -296,13 +296,5 @@ BOOST_AUTO_TEST_CASE( unimp_halt_transfers_flag_test )
|
||||||
BOOST_FAIL( "not implemented" );
|
BOOST_FAIL( "not implemented" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* verify that issuers can retract funds
|
|
||||||
*/
|
|
||||||
BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES( unimp_fund_retraction_test, 1 )
|
|
||||||
BOOST_AUTO_TEST_CASE( unimp_fund_retraction_test )
|
|
||||||
{
|
|
||||||
BOOST_FAIL( "not implemented" );
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE_END()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue