Skip to content
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

Testfix #389

Merged
merged 4 commits into from
Aug 11, 2022
Merged

Testfix #389

merged 4 commits into from
Aug 11, 2022

Conversation

cgsingh33
Copy link
Contributor

No description provided.

@dheerajkd30 dheerajkd30 merged commit 5a7ecf4 into feature/dev Aug 11, 2022
block := k.GetLastBlockheight(ctx)
if block != types.Int64Zero {
if ctx.BlockHeight()%types.Int64Twenty-types.Int64One == types.Int64Zero && ctx.BlockHeight() > block+types.Int64TwentyOne {
assets := k.GetAssetsForOracle(ctx)
assets := k.GetAssets(ctx)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
)
k.SetMarket(ctx, market)
if asset.IsOraclePriceRequired {
k.SetRates(ctx, asset.Name)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
k.SetMarket(ctx, market)
if asset.IsOraclePriceRequired {
k.SetRates(ctx, asset.Name)
k.SetMarketForAsset(ctx, asset.Id, asset.Name)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
if asset.IsOraclePriceRequired {
k.SetRates(ctx, asset.Name)
k.SetMarketForAsset(ctx, asset.Id, asset.Name)
rate, _ := k.GetRates(ctx, asset.Name)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
k.SetRates(ctx, asset.Name)
k.SetMarketForAsset(ctx, asset.Id, asset.Name)
rate, _ := k.GetRates(ctx, asset.Name)
scriptID := k.GetFetchPriceMsg(ctx).OracleScriptID

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
Rates: rate,
}
)
k.SetMarket(ctx, market)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
@dheerajkd30 dheerajkd30 deleted the testfix branch September 6, 2022 17:06
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.

2 participants