From bed78242060ff5d46db9ac97d0a34bba4fc444e9 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Mon, 16 Aug 2021 09:40:43 +0700 Subject: [PATCH] save --- txpool/fetch.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/txpool/fetch.go b/txpool/fetch.go index 918447e0f..24c0d9535 100644 --- a/txpool/fetch.go +++ b/txpool/fetch.go @@ -281,6 +281,9 @@ func (f *Fetch) handleInboundMessage(ctx context.Context, req *sentry.InboundMes return err } } + if len(txs.txs) == 0 { + return nil + } if err := f.coreDB.View(ctx, func(tx kv.Tx) error { return f.pool.Add(tx, txs) }); err != nil {