libraries/plugins/apis/database_api/database_api.cpp
// TODO: This is broken. By the look of is, it has been since BitShares. verify_authority always
// returns false because the TX is not signed.
This is broken. By the look of is, it has been since BitShares. verify_authority always
returns false because the TX is not signed.
This is broken . By the look of is it has been since BitShares . verify_authority always returns false because the TX is not signed .
DEFINE_API_IMPL( database_api_impl, verify_account_authority )
{
   auto account = _db.find< chain::wallet_object, chain::by_name >( args.account );
   FC_ASSERT( account != nullptr, "no such account" );
   verify_authority_args vap;
   transfer_operation op;
   op.from = account->name;
   vap.trx.operations.emplace_back( op );
   return verify_authority( vap );
}
DEFINE_API_IMPL ( database_api_impl , verify_account_authority ) { auto account = _db . find < chain :: wallet_object , chain :: by_name > ( args . account ) ; FC_ASSERT ( account != nullptr , " " ) ; verify_authority_args vap ; transfer_operation op ; op . from = account -> name ; vap . trx . operations . emplace_back ( op ) ; return verify_authority ( vap ) ; }
TODO: This is broken.
TODO : This is broken .
/// reuse trx.verify_authority by creating a dummy transfer