-
Notifications
You must be signed in to change notification settings - Fork 44
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
Problem: opBlockhash broke after sdk50 #534
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #534 +/- ##
===========================================
- Coverage 46.56% 46.48% -0.09%
===========================================
Files 181 181
Lines 14512 14529 +17
===========================================
- Hits 6758 6754 -4
- Misses 7040 7059 +19
- Partials 714 716 +2
|
return err | ||
} | ||
|
||
k.SetHeaderHash(ctx) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
for i := ctx.BlockHeight() - headerHashNum; i >= 0; i-- { | ||
h, err := ethermint.SafeUint64(i) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
for i := ctx.BlockHeight() - headerHashNum; i >= 0; i-- { | ||
h, err := ethermint.SafeUint64(i) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefixHeaderHash) | ||
height, err := ethermint.SafeUint64(ctx.BlockHeight()) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
k.SetHeaderHash(ctx) | ||
headerHashNum, err := ethermint.SafeInt64(cfg.Params.GetHeaderHashNum()) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
k.SetHeaderHash(ctx) | ||
headerHashNum, err := ethermint.SafeInt64(cfg.Params.GetHeaderHashNum()) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
Signed-off-by: yihuang <[email protected]>
Signed-off-by: yihuang <[email protected]>
Signed-off-by: yihuang <[email protected]>
Closes: #XXX
Description
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)