HomePhabricator

Replace trickle nodes with per-node/message Poisson delays
5400ef6bcb9dUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Replace trickle nodes with per-node/message Poisson delays

We used to have a trickle node, a node which was chosen in each iteration of
the send loop that was privileged and allowed to send out queued up non-time
critical messages. Since the removal of the fixed sleeps in the network code,
this resulted in fast and attackable treatment of such broadcasts.

This pull request changes the 3 remaining trickle use cases by random delays:

  • Local address broadcast (while also removing the the wiping of the seen filter)
  • Address relay
  • Inv relay (for transactions; blocks are always relayed immediately)

The code is based on older commits by Patrick Strateman.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Apr 8 2015, 18:20
deadalnixPushed on May 14 2017, 22:04
Parents
rABC9ee02cf564d1: Merge pull request #7156
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rABC5400ef6bcb9d: Replace trickle nodes with per-node/message Poisson delays (authored by Pieter Wuille <pieter.wuille@gmail.com>).Dec 11 2015, 21:20