New sync check on SON processing
This commit is contained in:
parent
73e4a0cc15
commit
d2c1711f7b
1 changed files with 8 additions and 2 deletions
|
|
@ -448,9 +448,15 @@ void peerplays_sidechain_plugin_impl::son_processing() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//fc::time_point now_fine = fc::time_point::now();
|
||||||
|
//fc::time_point_sec now = now_fine + fc::microseconds(500000);
|
||||||
|
//if (plugin.database().get_slot_time(1) < now) {
|
||||||
|
// return; // Not synced
|
||||||
|
//}
|
||||||
|
|
||||||
fc::time_point now_fine = fc::time_point::now();
|
fc::time_point now_fine = fc::time_point::now();
|
||||||
fc::time_point_sec now = now_fine + fc::microseconds(500000);
|
fc::time_point_sec now = now_fine - fc::milliseconds(3000);
|
||||||
if (plugin.database().get_slot_time(1) < now) {
|
if (plugin.database().head_block_time() < now) {
|
||||||
return; // Not synced
|
return; // Not synced
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue