Skip to content

Commit

Permalink
重启 节点,黑名单 失效,fixes #7 (#8)
Browse files Browse the repository at this point in the history
* restart sync list db

* recovery system account bos to eosio

* recovery system account bos to eosio

* recovery system account bos to eosio
  • Loading branch information
vlbos authored and Thaipanda committed Dec 12, 2018
1 parent b7d7bdb commit 4260006
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,11 @@ struct controller_impl {
ilog( "database initialized with hash: ${hash}", ("hash", hash) );
}


//*bos begin*
sync_name_list(list_type::actor_blacklist_type,true);
sync_name_list(list_type::contract_blacklist_type,true);
sync_name_list(list_type::resource_greylist_type,true);
//*bos end*
}

~controller_impl() {
Expand Down Expand Up @@ -649,9 +653,7 @@ struct controller_impl {
gpo.gmr.ram_byte = config::default_gmr_ram_limit;
});

sync_name_list(list_type::actor_blacklist_type,true);
sync_name_list(list_type::contract_blacklist_type,true);
sync_name_list(list_type::resource_greylist_type,true);

// *bos end*

authorization.initialize_database();
Expand Down

0 comments on commit 4260006

Please sign in to comment.