-
Notifications
You must be signed in to change notification settings - Fork 182
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
set headerfs.BlockStamp.Timestamp #235
Conversation
6cad667
to
69a978c
Compare
@chappjc, remember to re-request review from reviewers for your latest update |
@ellemouton: review reminder |
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.
tACK 🚀
The headerfs.BlockStamp returned from (*ChainService).BestBlock had a zero Timestamp. This change sets the Timestamp field from the block header.
69a978c
to
88c025e
Compare
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.
LGTM 🪓
🙏 Thanks! This will be a helpful change on our end. |
The
headerfs.BlockStamp
returned from(*ChainService).BestBlock
had a zeroTimestamp
.This change sets the
Timestamp
field from the block header if available.Internally it does not seem to matter that
Timestamp
is the zerotime.Time
, but forChainService
consumers it is helpful to have the block's timestamp. For example, one may compare the timestamp from the current best block fromChainService
to the walletManager
's birthday time.