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: e2e rewards test flaky #421

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open

Conversation

@RafilxTenfen RafilxTenfen self-assigned this Jan 17, 2025
@RafilxTenfen RafilxTenfen changed the title [DNM] chore: add log [DNM] chore: fix e2e rewards test Jan 17, 2025
@RafilxTenfen RafilxTenfen linked an issue Jan 29, 2025 that may be closed by this pull request
@RafilxTenfen
Copy link
Contributor Author

@RafilxTenfen
Copy link
Contributor Author

@RafilxTenfen
Copy link
Contributor Author

@RafilxTenfen
Copy link
Contributor Author

@RafilxTenfen
Copy link
Contributor Author

@RafilxTenfen RafilxTenfen marked this pull request as ready for review January 31, 2025 22:15
@RafilxTenfen RafilxTenfen changed the title [DNM] chore: fix e2e rewards test fix: e2e rewards test flaky Jan 31, 2025
@@ -50,6 +50,10 @@ func CheckTxFeeWithGlobalMinGasPrices(ctx sdk.Context, tx sdk.Tx) (sdk.Coins, in
// provided in a transaction.
// NOTE: This implementation should not be used for txs with multiple coins.
func getTxPriority(fee sdk.Coins, gas int64) int64 {
if gas == 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it would panic to quote as zero

n1.WaitUntilCurrentEpochIsSealedAndFinalized(1)
// needs to wait for a block to make sure the pub rand is committed
// prior to epoch finalization
n2.WaitForNextBlockWithSleep50ms()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

important part, before the pub rand might not get included in the latest epoch and then it would not be finalized

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.

test: flaky TestBTCRewardsDistribution test
1 participant