-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix(oralce):separate prepareRound from endBlock into beginBlock #3
base: develop
Are you sure you want to change the base?
Conversation
7f176ae
to
5ca1585
Compare
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} | ||
func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { | ||
_ = keeper.GetCaches() | ||
agc := keeper.GetAggregatorContext(ctx, am.keeper) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
for b, recentParams := range recentParamsMap { | ||
if b <= from && b > prev { | ||
pTmp = common.Params(*recentParams) | ||
agc.SetParams(&pTmp) | ||
prev = b | ||
setCommonParams(*recentParams) | ||
} | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning
testutil/keeper/oracle.go
Outdated
@@ -46,7 +47,9 @@ | |||
dogfoodkeeper.Keeper{}, | |||
) | |||
|
|||
ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) | |||
ctx := sdk.NewContext(stateStore, tmproto.Header{ | |||
Time: time.Now().UTC(), |
Check warning
Code scanning / CodeQL
Calling the system time Warning test
Description
Closes #XXX