-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process missed blocks on startup #20
Changes from 1 commit
c74ef48
1280b4a
551b90e
5ca0bd0
ba3f2fb
39fdc21
a1aab00
6913fb9
505b337
de7a347
349ac1e
162ca0d
7d07d82
9a0baa0
dc7ae3c
860f595
aa8dd8b
ac5d57d
9a51727
16af742
2bb9605
1727f90
e49395b
ebdfc79
532094c
f4d2c83
17879c0
4e5419d
cf9a0e7
9fdd275
32146a4
ce66b82
e012c4e
44384ca
e9c0b01
878d4c6
85cf76c
813a8e9
fde1675
c4e36bd
b8902c5
9bda673
48ec689
4ed7671
4cdc487
55bc03c
232f6fe
5b0cc63
995d204
e30a4ac
1e9891d
8870d8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,8 @@ type Subscriber interface { | |
// ProcessFromHeight processes events from {height} to the latest block | ||
ProcessFromHeight(height *big.Int) error | ||
|
||
// UpdateLatestSeenBlock retrieves the latest block from the chain and updates the database | ||
UpdateLatestSeenBlock() error | ||
// UpdateLatestProcessedBlock retrieves the latest block from the chain and updates the database | ||
UpdateLatestProcessedBlock() error | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Final nit: Could we think of a more descriptive name for this function? My only idea is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm more in favor of omitting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice, yeah totally agree. Good call 🙏 |
||
|
||
// Subscribe registers a subscription. After Subscribe is called, | ||
// log events that match [filter] are written to the channel returned | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you move this to a helper similar to
processPreviousBlocks
?