Skip to content

Commit 77e4f01

Browse files
Fix spynode broadcast remove tx bug.
1 parent 392f8e4 commit 77e4f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spynode/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ func (node *Node) monitorUntrustedNodes(ctx context.Context) {
10141014
node.broadcastTxs[i].count += sentCount
10151015
if node.broadcastTxs[i].count > node.config.ShotgunCount {
10161016
// tx has been sent to enough nodes. remove it
1017-
node.broadcastTxs = append(node.broadcastTxs[:1],
1017+
node.broadcastTxs = append(node.broadcastTxs[:i],
10181018
node.broadcastTxs[i+1:]...)
10191019
}
10201020
break

0 commit comments

Comments
 (0)