Skip to content

Remove MedianTime, set block time to Now() - #7382

Merged
ancazamfir merged 3 commits into
wb/proposer-based-timestampsfrom
anca/remove_median_time
Dec 9, 2021
Merged

ancazamfir merged 3 commits into
wb/proposer-based-timestampsfrom
anca/remove_median_time

Conversation

@ancazamfir

Copy link
Copy Markdown
Contributor

Addresses Remove all the median time checks. from #6942

@williambanfield

Copy link
Copy Markdown
Contributor

Other than the failing lint, this looks completely correct.

@ancazamfir
ancazamfir marked this pull request as ready for review December 7, 2021 19:29
Comment thread internal/state/validation_test.go Outdated
"time"

"github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/crypto/tmhash"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: order these below with the rest of the tendermint library imports.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having go imports setup in your editor should take care of this sort of thing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this happens if you run goimports on a file where the import ordering was previously incorrect. It doesn't realize which block it should put the incorrectly ordered libraries into so it just puts them into a new block but generally it definitely should be the way to avoid this.

@ancazamfir
ancazamfir merged commit 8f204cf into wb/proposer-based-timestamps Dec 9, 2021
@ancazamfir
ancazamfir deleted the anca/remove_median_time branch December 9, 2021 04:01
williambanfield pushed a commit that referenced this pull request Jan 15, 2022
* Remove MedianTime, set block time to Now()

* Fix goimports

* Fix import ordering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants