Proof of concept fix for asset creation fee issue
This commit is contained in:
parent
a6f1ae0bf1
commit
8d8b84cc37
2 changed files with 11 additions and 2 deletions
|
|
@ -93,8 +93,6 @@ void_result asset_create_evaluator::do_evaluate( const asset_create_operation& o
|
||||||
wlog( "Asset ${s} has a name which requires hardfork 385", ("s",op.symbol) );
|
wlog( "Asset ${s} has a name which requires hardfork 385", ("s",op.symbol) );
|
||||||
}
|
}
|
||||||
|
|
||||||
core_fee_paid -= core_fee_paid.value/2;
|
|
||||||
|
|
||||||
if( op.bitasset_opts )
|
if( op.bitasset_opts )
|
||||||
{
|
{
|
||||||
const asset_object& backing = op.bitasset_opts->short_backing_asset(d);
|
const asset_object& backing = op.bitasset_opts->short_backing_asset(d);
|
||||||
|
|
@ -121,6 +119,12 @@ void_result asset_create_evaluator::do_evaluate( const asset_create_operation& o
|
||||||
return void_result();
|
return void_result();
|
||||||
} FC_CAPTURE_AND_RETHROW( (op) ) }
|
} FC_CAPTURE_AND_RETHROW( (op) ) }
|
||||||
|
|
||||||
|
void asset_create_evaluator::pay_fee()
|
||||||
|
{
|
||||||
|
core_fee_paid -= core_fee_paid.value/2;
|
||||||
|
generic_evaluator::pay_fee();
|
||||||
|
}
|
||||||
|
|
||||||
object_id_type asset_create_evaluator::do_apply( const asset_create_operation& op )
|
object_id_type asset_create_evaluator::do_apply( const asset_create_operation& op )
|
||||||
{ try {
|
{ try {
|
||||||
const asset_dynamic_data_object& dyn_asset =
|
const asset_dynamic_data_object& dyn_asset =
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,11 @@ namespace graphene { namespace chain {
|
||||||
|
|
||||||
void_result do_evaluate( const asset_create_operation& o );
|
void_result do_evaluate( const asset_create_operation& o );
|
||||||
object_id_type do_apply( const asset_create_operation& o );
|
object_id_type do_apply( const asset_create_operation& o );
|
||||||
|
|
||||||
|
/** override the default behavior defined by generic_evalautor which is to
|
||||||
|
* post the fee to fee_paying_account_stats.pending_fees
|
||||||
|
*/
|
||||||
|
virtual void pay_fee() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class asset_issue_evaluator : public evaluator<asset_issue_evaluator>
|
class asset_issue_evaluator : public evaluator<asset_issue_evaluator>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue