removed witness check
This commit is contained in:
parent
0800e2bc67
commit
69630183f9
1 changed files with 2 additions and 11 deletions
|
|
@ -2053,17 +2053,8 @@ public:
|
||||||
|
|
||||||
vbos = _remote_db->get_vesting_balances( *acct_id );
|
vbos = _remote_db->get_vesting_balances( *acct_id );
|
||||||
if( vbos.size() == 0 )
|
if( vbos.size() == 0 )
|
||||||
{
|
|
||||||
if (is_witness(account_name))
|
|
||||||
{
|
|
||||||
witness_object wit = get_witness( account_name );
|
|
||||||
FC_ASSERT( wit.pay_vb, "Account ${account} has no core TOKEN vested and thus its not allowed to withdraw.", ("account", account_name));
|
|
||||||
vbid = wit.pay_vb;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
FC_THROW("Account ${account} has no core TOKEN vested and thus its not allowed to withdraw.", ("account", account_name));
|
FC_THROW("Account ${account} has no core TOKEN vested and thus its not allowed to withdraw.", ("account", account_name));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//whether it is a witness or user, keep it in a container and iterate over to process all vesting balances and types
|
//whether it is a witness or user, keep it in a container and iterate over to process all vesting balances and types
|
||||||
if(!vbos.size())
|
if(!vbos.size())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue