forked from lthn/blockchain
added more stat in wallet logs
This commit is contained in:
parent
8d197e55f3
commit
2320fe5099
3 changed files with 5 additions and 2 deletions
|
|
@ -1546,7 +1546,7 @@ void daemon_backend::wallet_vs_options::worker_func()
|
||||||
{
|
{
|
||||||
w->get()->build_minted_block(ctx.sp, ctx.rsp);
|
w->get()->build_minted_block(ctx.sp, ctx.rsp);
|
||||||
}
|
}
|
||||||
LOG_PRINT_L1(w->get()->get_log_prefix() + " PoS mint iteration finished(" << ctx.rsp.status << ")");
|
LOG_PRINT_L1(w->get()->get_log_prefix() + " PoS mint iteration finished(iterations: " << ctx.rsp.iterations_processed << "," << ctx.rsp.status << ")");
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1084,6 +1084,7 @@ namespace currency
|
||||||
uint64_t starter_timestamp;
|
uint64_t starter_timestamp;
|
||||||
crypto::hash last_block_hash;
|
crypto::hash last_block_hash;
|
||||||
bool is_pos_allowed;
|
bool is_pos_allowed;
|
||||||
|
uint64_t iterations_processed;
|
||||||
|
|
||||||
BEGIN_KV_SERIALIZE_MAP()
|
BEGIN_KV_SERIALIZE_MAP()
|
||||||
KV_SERIALIZE(status)
|
KV_SERIALIZE(status)
|
||||||
|
|
@ -1091,6 +1092,7 @@ namespace currency
|
||||||
KV_SERIALIZE(block_timestamp)
|
KV_SERIALIZE(block_timestamp)
|
||||||
KV_SERIALIZE(height)
|
KV_SERIALIZE(height)
|
||||||
KV_SERIALIZE(is_pos_allowed)
|
KV_SERIALIZE(is_pos_allowed)
|
||||||
|
KV_SERIALIZE(iterations_processed)
|
||||||
KV_SERIALIZE(starter_timestamp)
|
KV_SERIALIZE(starter_timestamp)
|
||||||
KV_SERIALIZE_VAL_POD_AS_BLOB(last_block_hash);
|
KV_SERIALIZE_VAL_POD_AS_BLOB(last_block_hash);
|
||||||
END_KV_SERIALIZE_MAP()
|
END_KV_SERIALIZE_MAP()
|
||||||
|
|
|
||||||
|
|
@ -1014,7 +1014,7 @@ namespace tools
|
||||||
cxt.rsp.status = CORE_RPC_STATUS_NOT_FOUND;
|
cxt.rsp.status = CORE_RPC_STATUS_NOT_FOUND;
|
||||||
uint64_t timstamp_start = runtime_config.get_core_time();
|
uint64_t timstamp_start = runtime_config.get_core_time();
|
||||||
uint64_t timstamp_last_idle_call = runtime_config.get_core_time();
|
uint64_t timstamp_last_idle_call = runtime_config.get_core_time();
|
||||||
|
cxt.rsp.iterations_processed = 0;
|
||||||
|
|
||||||
for (size_t i = 0; i != cxt.sp.pos_entries.size(); i++)
|
for (size_t i = 0; i != cxt.sp.pos_entries.size(); i++)
|
||||||
{
|
{
|
||||||
|
|
@ -1080,6 +1080,7 @@ namespace tools
|
||||||
{
|
{
|
||||||
PROFILE_FUNC("check_hash");
|
PROFILE_FUNC("check_hash");
|
||||||
check_hash_res = currency::check_hash(kernel_hash, this_coin_diff);
|
check_hash_res = currency::check_hash(kernel_hash, this_coin_diff);
|
||||||
|
++cxt.rsp.iterations_processed;
|
||||||
}
|
}
|
||||||
if (check_hash_res)
|
if (check_hash_res)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue