From a1976719322c3611fe2d99ea360a671306fe3ed8 Mon Sep 17 00:00:00 2001 From: Bruce Riley Date: Wed, 1 Nov 2023 11:30:47 -0500 Subject: [PATCH] NODE/GACCT: Don't reload invalid transfers --- node/pkg/accountant/accountant.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/pkg/accountant/accountant.go b/node/pkg/accountant/accountant.go index 281de7a43d..ad56251ebc 100644 --- a/node/pkg/accountant/accountant.go +++ b/node/pkg/accountant/accountant.go @@ -331,6 +331,10 @@ func (acct *Accountant) loadPendingTransfers() error { for _, msg := range pendingTransfers { msgId := msg.MessageIDString() + if !acct.IsMessageCoveredByAccountant(msg) { + acct.logger.Error("dropping reloaded pending transfer because it is not covered by the accountant", zap.String("msgID", msgId)) + continue + } acct.logger.Info("reloaded pending transfer", zap.String("msgID", msgId)) digest := msg.CreateDigest()