-
Notifications
You must be signed in to change notification settings - Fork 64
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
Testfix #389
Conversation
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
) | ||
k.SetMarket(ctx, market) | ||
if asset.IsOraclePriceRequired { | ||
k.SetRates(ctx, asset.Name) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
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
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
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
Rates: rate, | ||
} | ||
) | ||
k.SetMarket(ctx, market) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
No description provided.