mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Networking fixes related to peer connectivity issues (#384)
This commit is contained in:
committed by
GitHub
parent
6a2384cd03
commit
e7e1268a99
@@ -791,7 +791,12 @@ namespace consensus
|
||||
{
|
||||
std::scoped_lock lock(ctx.contract_ctx_mutex);
|
||||
if (ctx.contract_ctx)
|
||||
return ctx.contract_ctx->args.npl_messages.try_enqueue(std::move(npl_msg));
|
||||
{
|
||||
if (ctx.contract_ctx->args.lcl_id == npl_msg.lcl_id)
|
||||
return ctx.contract_ctx->args.npl_messages.try_enqueue(std::move(npl_msg));
|
||||
else
|
||||
LOG_DEBUG << "Trying to add irrelevant NPL from " << util::to_hex(npl_msg.pubkey) << " | lcl-seq: " << npl_msg.lcl_id.seq_no;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user