Initializer
init(state:tip:remoteTip:)
Creates an BlockchainSync.Update.
init(state: BlockchainSync.Update.State, tip: BlockTip, remoteTip: BlockTip)
Parameters
-
state
-
The lifecycle phase this Update represents.
-
tip
-
The local chainstate’s best block.
-
remoteTip
-
The source’s best block as of the last poll.
Discussion
Public so BlockSource conformers and tests can construct synthetic updates; production code receives Updates from updates().