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

Fix GasEstimateGasPremium when there is only one message on chain #3428

Merged
merged 2 commits into from
Sep 1, 2020

Conversation

Kubuxu
Copy link
Contributor

@Kubuxu Kubuxu commented Aug 31, 2020

No description provided.

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>

premium = types.BigAdd(big.Div(types.BigAdd(price.price, prev), types.NewInt(2)), big.NewInt(1))
premium := prev1
if types.BigCmp(prev2, big.Zero()) != 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prev2.Sign() != 0

@arajasek arajasek merged commit 04a9822 into master Sep 1, 2020
@arajasek arajasek deleted the fix/estim-gas-price-one-msg branch September 1, 2020 00:01
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.

GasEstimateGasPremium returning "1" for a period of 7 seconds after calling MpoolPush
3 participants