Skip to content

Commit 5119089

Browse files
authored
* add X1 to blockcore * add seeds * fix mining configuration * disable mempool comm in IBD
1 parent 04aa205 commit 5119089

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Features/Blockcore.Features.MemoryPool/MempoolBehavior.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ private async Task OnMessageReceivedAsync(INetworkPeer peer, IncomingMessage mes
162162
{
163163
try
164164
{
165+
if (this.initialBlockDownloadState.IsInitialBlockDownload())
166+
{
167+
this.logger.LogTrace("(-)[IS_IBD]");
168+
return;
169+
}
170+
165171
await this.ProcessMessageAsync(peer, message).ConfigureAwait(false);
166172
}
167173
catch (OperationCanceledException)
@@ -289,12 +295,6 @@ private async Task ProcessInvAsync(INetworkPeer peer, InvPayload invPayload)
289295
return; //error("message inv size() = %u", vInv.size());
290296
}
291297

292-
if (this.initialBlockDownloadState.IsInitialBlockDownload())
293-
{
294-
this.logger.LogTrace("(-)[IS_IBD]");
295-
return;
296-
}
297-
298298
//uint32_t nFetchFlags = GetFetchFlags(pfrom, chainActive.Tip(), chainparams.GetConsensus());
299299

300300
var inventoryTxs = invPayload.Inventory.Where(inv => inv.Type.HasFlag(InventoryType.MSG_TX));

0 commit comments

Comments
 (0)