-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add ConsensusParameters methods for scheduler/epochtime #3565
Conversation
8a0a451
to
94c7bd6
Compare
go/consensus/api/light.go
Outdated
// Consensus are the backend agnostic consensus parameters. | ||
Consensus genesis.Parameters `json:"consensus"` |
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.
// Consensus are the backend agnostic consensus parameters. | |
Consensus genesis.Parameters `json:"consensus"` | |
// Parameters are the backend agnostic consensus parameters. | |
Parameters genesis.Parameters `json:"parameters"` |
Also these should probably be placed above Meta
.
e129e3b
to
dcf12d4
Compare
Codecov Report
@@ Coverage Diff @@
## master #3565 +/- ##
==========================================
+ Coverage 66.47% 66.84% +0.36%
==========================================
Files 377 377
Lines 34469 34544 +75
==========================================
+ Hits 22914 23091 +177
+ Misses 8246 8154 -92
+ Partials 3309 3299 -10
Continue to review full report at Codecov.
|
go/consensus/tendermint/full/full.go
Outdated
} | ||
|
||
tmHeight, err := t.heightToTendermintHeight(height) | ||
if err != nil { |
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.
Change to a switch.
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.
yeah good idea 😁 done
@@ -110,6 +110,9 @@ type ClientBackend interface { | |||
// GetEpoch returns the current epoch. | |||
GetEpoch(ctx context.Context, height int64) (epochtime.EpochTime, error) | |||
|
|||
// EpochtimeConsensusParameters returns the epochtime consensus parameters. |
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.
Maybe file an issue to remove this when the new beacon backend is in place? Or mention it in #3180.
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.
will comment on #3180 after i merge this
2015e0a
to
50dbf48
Compare
50dbf48
to
b304bce
Compare
b304bce
to
4276b59
Compare
TODO: