mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Allow a 20 second clock offset.
This commit is contained in:
@@ -571,8 +571,8 @@ void Peer::recvHello(newcoin::TMHello& packet)
|
||||
// Cancel verification timeout.
|
||||
(void) mVerifyTimer.cancel();
|
||||
|
||||
uint32 minTime = theApp->getOPs().getNetworkTimeNC() - 4;
|
||||
uint32 maxTime = minTime + 8;
|
||||
uint32 minTime = theApp->getOPs().getNetworkTimeNC() - 20;
|
||||
uint32 maxTime = minTime + 20;
|
||||
|
||||
if (packet.has_nettime() && ((packet.nettime() < minTime) || (packet.nettime() > maxTime)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user