-
Notifications
You must be signed in to change notification settings - Fork 130
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
feat(dot/rpc) Add system_syncState
rpc call
#1691
Changes from 3 commits
ca112dd
ab0ef4b
fb6dc6a
c9a50ce
46c73b3
b997e93
d9a8972
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 |
---|---|---|
|
@@ -674,3 +674,13 @@ func (s *Service) Peers() []common.PeerInfo { | |
func (s *Service) NodeRoles() byte { | ||
return s.cfg.Roles | ||
} | ||
|
||
// HighestBlock returns the highest known block number | ||
func (s *Service) HighestBlock() int64 { | ||
return s.syncQueue.goal | ||
} | ||
|
||
// StartingBlock return the starting block number | ||
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. starting block number that's currently being synced 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. updated! |
||
func (s *Service) StartingBlock() int64 { | ||
return s.syncQueue.currStart | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
any reason why this isn't a
uint64
?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.
I decided to keep the return type as the same type of
syncQueue.currStart