Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
Revert filtering by withdraw condition for wallet_account_balance{_ids}
Browse files Browse the repository at this point in the history
  • Loading branch information
vikramrajkumar committed Dec 10, 2014
1 parent a184d11 commit 343cf7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
12 changes: 0 additions & 12 deletions libraries/api/wallet_api.json
Expand Up @@ -1779,12 +1779,6 @@
"type" : "account_name",
"description" : "the account to get a balance for, or leave empty for all accounts",
"default_value" : ""
},
{
"name" : "withdraw_condition",
"type" : "withdraw_condition_type",
"description" : "the withdraw condition type to return balances for",
"default_value" : "withdraw_signature_type"
}
],
"is_const" : true,
Expand All @@ -1801,12 +1795,6 @@
"type" : "account_name",
"description" : "the account to list balance ids for, or leave empty for all accounts",
"default_value" : ""
},
{
"name" : "withdraw_condition",
"type" : "withdraw_condition_type",
"description" : "the withdraw condition type to return balance ids for",
"default_value" : "withdraw_signature_type"
}
],
"is_const" : true,
Expand Down
18 changes: 8 additions & 10 deletions libraries/client/wallet_api.cpp
Expand Up @@ -143,14 +143,14 @@ map<transaction_id_type, fc::exception> detail::client_impl::wallet_get_pending_
}
wallet_transaction_record detail::client_impl::wallet_asset_authorize_key( const string& paying_account_name,
const string& symbol,
const string& key,
const string& key,
const object_id_type& meta )
{
address addr;
try {
try { addr = address( public_key_type( key ) ); }
try { addr = address( public_key_type( key ) ); }
catch ( ... ) { addr = address( key ); }
}
}
catch ( ... )
{
auto account = _chain_db->get_account_record( key );
Expand Down Expand Up @@ -1129,16 +1129,14 @@ vector<bts::wallet::escrow_summary> client_impl::wallet_escrow_summary( const st
return _wallet->get_escrow_balances( account_name );
}

account_balance_summary_type client_impl::wallet_account_balance( const string& account_name,
const withdraw_condition_types& withdraw_condition )const
account_balance_summary_type client_impl::wallet_account_balance( const string& account_name )const
{
return _wallet->get_account_balances( account_name, false, 1 << uint8_t( withdraw_condition ) );
return _wallet->get_account_balances( account_name, false );
}

account_balance_id_summary_type client_impl::wallet_account_balance_ids( const string& account_name,
const withdraw_condition_types& withdraw_condition )const
account_balance_id_summary_type client_impl::wallet_account_balance_ids( const string& account_name )const
{
return _wallet->get_account_balance_ids( account_name, false, 1 << uint8_t( withdraw_condition ) );
return _wallet->get_account_balance_ids( account_name, false );
}

account_balance_summary_type client_impl::wallet_account_yield( const string& account_name )const
Expand Down Expand Up @@ -1455,7 +1453,7 @@ string client_impl::wallet_generate_brain_seed()const
for( uint32_t i = 0; i < 9; ++i )
result += word_list[keys[i]%word_list_size] + string(" ");

result += string( address(priv_key.get_public_key()) ).substr(4);
result += string( address(priv_key.get_public_key()) ).substr(4);

return result;
}
Expand Down

0 comments on commit 343cf7a

Please sign in to comment.