From bdd3e3e53b23f2b36eef60d99cf25dd6504575ef Mon Sep 17 00:00:00 2001 From: Ashita Gupta Date: Tue, 27 Aug 2024 11:10:00 +0530 Subject: [PATCH] bug fix to update peerList --- core/quorum_initiator.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/quorum_initiator.go b/core/quorum_initiator.go index 85908941..abc5c2d7 100644 --- a/core/quorum_initiator.go +++ b/core/quorum_initiator.go @@ -1210,7 +1210,10 @@ func (c *Core) quorumPledgeFinality(cr *ConensusRequest, newBlock *block.Block, c.log.Error("Failed to update pledge token status", "msg", pr.BasicResponse.Message) return fmt.Errorf("failed to update pledge token status") } - peerList = pr.PeerList + + for k, v := range pr.PeerList { + peerList[k] = v + } } return nil }