mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Refactored consensus to run on a separate thread. (#123)
This commit is contained in:
committed by
GitHub
parent
180b1ec714
commit
37629471c5
@@ -153,9 +153,8 @@ namespace p2p
|
||||
{
|
||||
if (ctx.peer_connections.size() == 0)
|
||||
{
|
||||
LOG_DBG << "No peers to broadcast (not even self). Waiting until at least one peer connects.";
|
||||
while (ctx.peer_connections.size() == 0)
|
||||
util::sleep(100);
|
||||
LOG_DBG << "No peers to broadcast (not even self). Cannot broadcast.";
|
||||
return;
|
||||
}
|
||||
|
||||
//Broadcast while locking the peer_connections.
|
||||
|
||||
Reference in New Issue
Block a user