Minor fixes
This commit is contained in:
parent
55132a086b
commit
5af07283d5
3 changed files with 6 additions and 6 deletions
|
|
@ -33,7 +33,7 @@ namespace graphene { namespace chain {
|
|||
optional<public_key_type> new_signing_key;
|
||||
optional<flat_map<sidechain_type, string>> new_sidechain_public_keys;
|
||||
optional<vesting_balance_id_type> new_pay_vb;
|
||||
optional<son_status> status;
|
||||
optional<son_status> new_status;
|
||||
|
||||
account_id_type fee_payer()const { return owner_account; }
|
||||
share_type calculate_fee(const fee_parameters_type& k)const { return 0; }
|
||||
|
|
@ -105,7 +105,7 @@ FC_REFLECT(graphene::chain::son_create_operation, (fee)(owner_account)(url)(depo
|
|||
|
||||
FC_REFLECT(graphene::chain::son_update_operation::fee_parameters_type, (fee) )
|
||||
FC_REFLECT(graphene::chain::son_update_operation, (fee)(son_id)(owner_account)(new_url)(new_deposit)
|
||||
(new_signing_key)(new_sidechain_public_keys)(new_pay_vb) )
|
||||
(new_signing_key)(new_sidechain_public_keys)(new_pay_vb)(new_status) )
|
||||
|
||||
FC_REFLECT(graphene::chain::son_deregister_operation::fee_parameters_type, (fee) )
|
||||
FC_REFLECT(graphene::chain::son_deregister_operation, (fee)(son_id)(payer) )
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ void_result update_son_evaluator::do_evaluate(const son_update_operation& op)
|
|||
FC_ASSERT(vbo.policy.which() == vesting_policy::tag<linear_vesting_policy>::value,
|
||||
"Payment balance must have linear vesting policy");
|
||||
}
|
||||
if(op.status.valid()) {
|
||||
if(op.new_status.valid()) {
|
||||
FC_ASSERT(db().get(op.son_id).status == son_status::deregistered, "SON must be in deregistered state");
|
||||
}
|
||||
return void_result();
|
||||
|
|
@ -97,7 +97,7 @@ object_id_type update_son_evaluator::do_apply(const son_update_operation& op)
|
|||
if(op.new_signing_key.valid()) so.signing_key = *op.new_signing_key;
|
||||
if(op.new_sidechain_public_keys.valid()) so.sidechain_public_keys = *op.new_sidechain_public_keys;
|
||||
if(op.new_pay_vb.valid()) so.pay_vb = *op.new_pay_vb;
|
||||
if(op.status.valid()) so.status = son_status::inactive;
|
||||
if(op.new_status.valid()) so.status = son_status::inactive;
|
||||
});
|
||||
}
|
||||
return op.son_id;
|
||||
|
|
|
|||
|
|
@ -2122,7 +2122,7 @@ public:
|
|||
son_update_operation son_update_op;
|
||||
son_update_op.son_id = son.id;
|
||||
son_update_op.owner_account = son.son_account;
|
||||
son_update_op.status = son_status::inactive;
|
||||
son_update_op.new_status = son_status::inactive;
|
||||
signed_transaction tx;
|
||||
tx.operations.push_back( son_update_op );
|
||||
set_operation_fees( tx, _remote_db->get_global_properties().parameters.current_fees );
|
||||
|
|
@ -2131,7 +2131,7 @@ public:
|
|||
return sign_transaction( tx, broadcast );
|
||||
} FC_CAPTURE_AND_RETHROW( (owner_account)(broadcast) ) }
|
||||
|
||||
signed_transaction update_son_vesting_balances(string owner_account,
|
||||
signed_transaction update_son_vesting_balances(string owner_account,
|
||||
optional<vesting_balance_id_type> new_deposit,
|
||||
optional<vesting_balance_id_type> new_pay_vb,
|
||||
bool broadcast /* = false */)
|
||||
|
|
|
|||
Loading…
Reference in a new issue