Documentation ¶
Overview ¶
Package blockchain provides two implementations of the fast-sync protocol.
- v0 was the very first implementation. it's battle tested, but does not have a lot of test coverage. - v2 is the newest implementation, with a focus on testability and readability.
Check out ADR-40 for the formal model and requirements.
Termination criteria ¶
1. the maximum peer height is reached 2. termination timeout is triggered, which is set if the peer set is empty or there are no pending requests.
Index ¶
Constants ¶
View Source
const ( MaxMsgSize = types.MaxBlockSizeBytes + bcproto.BlockResponseMessagePrefixSize + bcproto.BlockResponseMessageFieldKeySize )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
internal/behavior
Package Behavior provides a mechanism for reactors to report behavior of peers.
|
Package Behavior provides a mechanism for reactors to report behavior of peers. |
Click to show internal directories.
Click to hide internal directories.