Progress #127 - importing balances
This commit is contained in:
parent
3d220e0df6
commit
68fabe1464
3 changed files with 2 additions and 1 deletions
|
|
@ -953,6 +953,7 @@ void balance_claim_operation::get_required_auth(flat_set<account_id_type>& acti
|
|||
void balance_claim_operation::validate()const
|
||||
{
|
||||
FC_ASSERT( fee == asset() );
|
||||
FC_ASSERT( balance_owner_key != public_key_type() );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2262,6 +2262,7 @@ signed_transaction wallet_api::import_balance( string name_or_id, const vector<s
|
|||
{
|
||||
op.total_claimed = b.vesting_policy.valid()? asset(0, b.balance.asset_id) : b.balance;
|
||||
op.balance_to_claim = b.id;
|
||||
op.balance_owner_key = keys[b.owner].get_public_key();
|
||||
trx.operations.push_back(op);
|
||||
required_addrs.insert(b.owner);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1107,7 +1107,6 @@ BOOST_AUTO_TEST_CASE( witness_withdraw_pay_test )
|
|||
|
||||
const asset_object* core = &asset_id_type()(db);
|
||||
const account_object* nathan = &get_account("nathan");
|
||||
idump((*nathan));
|
||||
enable_fees(105000000);
|
||||
BOOST_CHECK_GT(db.current_fee_schedule().membership_lifetime_fee, 0);
|
||||
// Based on the size of the reserve fund later in the test, the witness budget will be set to this value
|
||||
|
|
|
|||
Loading…
Reference in a new issue