chainntnfs: dispatch block notification for current tip upon registration

This commit is contained in:
Wilmer Paulino committed 2019-01-21 13:58:52 -08:00
1 parent 568f8271a0
commit 26d53c64f1
5 files changed
+139 -55

No files matched your search

+3 -1
View File
@@ -127,7 +127,9 @@ type ChainNotifier interface {
// Clients have the option of passing in their best known block.
// If they specify a block, the ChainNotifier checks whether the client
// is behind on blocks. If they are, the ChainNotifier sends a backlog
// of block notifications for the missed blocks.
// of block notifications for the missed blocks. If they do not provide
// one, then a notification will be dispatched immediately for the
// current tip of the chain upon a successful registration.
RegisterBlockEpochNtfn(*BlockEpoch) (*BlockEpochEvent, error)
// Start the ChainNotifier. Once started, the implementation should be