Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ is on, as from genesis, and the minimum of that sync is the work of elo less the
144 headers. Then the branch goes on as one that elo kept. A connection has at
most one low-work sync, so a second one ends it, and the next connection gets a
new salt. Each `getheaders` of a low-work sync or of a branch has only the hash
of the last header that elo got.
of the last header that elo got. When a branch ends with no more work, elo keeps
the hash and the work of its last header, and the height and hash of its own
tip. It drops them when that tip leaves its chain, or when the connection ends.
For a branch below the margin, the work that elo keeps can be more than the true
work, but not less: the true work needs the work of each header of elo above the
fork. Headers that the peer announces on that header do not make elo ask. elo
adds the work of each one that has its proof of work. It asks when the branch
has more work, or when the announcement is a full batch.
A peer announces a block with an `inv` when its headers do not connect to the
last header it sent, so an `inv` of a block makes elo ask too. From the
handshake on, it pings the peer every 2 min.
Expand Down
Binary file not shown.
Loading