Cut back on log spam during resyncing
This commit is contained in:
parent
1667a72144
commit
81d2679db9
1 changed files with 6 additions and 4 deletions
|
|
@ -315,7 +315,9 @@ namespace detail {
|
||||||
virtual bool handle_block(const graphene::net::block_message& blk_msg, bool sync_mode,
|
virtual bool handle_block(const graphene::net::block_message& blk_msg, bool sync_mode,
|
||||||
std::vector<fc::uint160_t>& contained_transaction_message_ids) override
|
std::vector<fc::uint160_t>& contained_transaction_message_ids) override
|
||||||
{ try {
|
{ try {
|
||||||
|
if (!sync_mode || blk_msg.block.block_num() % 10000 == 0)
|
||||||
ilog("Got block #${n} from network", ("n", blk_msg.block.block_num()));
|
ilog("Got block #${n} from network", ("n", blk_msg.block.block_num()));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
bool result = _chain_db->push_block(blk_msg.block, _is_block_producer ? database::skip_nothing : database::skip_transaction_signatures);
|
bool result = _chain_db->push_block(blk_msg.block, _is_block_producer ? database::skip_nothing : database::skip_transaction_signatures);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue