Also cover account_update_operation
This commit is contained in:
parent
188d55158c
commit
5e7acde885
1 changed files with 14 additions and 0 deletions
|
|
@ -343,6 +343,20 @@ void_result account_update_evaluator::do_apply( const account_update_operation&
|
|||
a.top_n_control_flags = 0;
|
||||
}
|
||||
if( o.new_options ) a.options = *o.new_options;
|
||||
|
||||
if (!a.options.extensions.value.num_son.valid())
|
||||
{
|
||||
a.options.extensions.value = account_options::ext();
|
||||
a.options.extensions.value.num_son = []{
|
||||
flat_map<sidechain_type, uint16_t> num_son;
|
||||
for(const auto& active_sidechain_type : all_sidechain_types){
|
||||
num_son[active_sidechain_type] = 0;
|
||||
}
|
||||
return num_son;
|
||||
}();
|
||||
|
||||
}
|
||||
|
||||
if( o.extensions.value.owner_special_authority.valid() )
|
||||
{
|
||||
a.owner_special_authority = *(o.extensions.value.owner_special_authority);
|
||||
|
|
|
|||
Loading…
Reference in a new issue