Skip to content

Commit

Permalink
fix: use correct comparison for bounds check in localtxmonitor (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney authored Dec 27, 2024
1 parent e410e9d commit 71842b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/localtxmonitor/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (s *Server) handleNextTx() error {
"role", "server",
"connection_id", s.callbackContext.ConnectionId.String(),
)
if s.mempoolNextTxIdx > len(s.mempoolTxs) {
if s.mempoolNextTxIdx >= len(s.mempoolTxs) {
newMsg := NewMsgReplyNextTx(0, nil)
if err := s.SendMessage(newMsg); err != nil {
return err
Expand Down

0 comments on commit 71842b5

Please sign in to comment.