Skip to content

Conversation

rjl493456442
Copy link
Member

No description provided.

if otherreject > int64(len(batch)/4) {
time.Sleep(200 * time.Millisecond)
log.Debug("Peer delivering stale transactions", "peer", peer, "rejected", otherreject)
log.Debug("Peer delivering invalid transactions", "peer", peer, "rejected", otherreject)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this log be before the sleep?

@lightclient
Copy link
Member

The new condition will cause a peer to sleep if they send a batch with 1 invalid tx. The stall is still quite short, so doesn't seem like an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants