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

[NONEVM-714] [solana] - Add multiple blocks aggregation functionality to Block History Estimator #896

Merged
merged 35 commits into from
Nov 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
804ce14
multiple blocks history estimator
Farber98 Oct 18, 2024
5ebe92a
comment fix
Farber98 Oct 18, 2024
f7544ce
fix txm tests
Farber98 Oct 18, 2024
a39a2a3
fix internal tests
Farber98 Oct 18, 2024
cab4eff
fix test
Farber98 Oct 18, 2024
915d303
fix internal test
Farber98 Oct 18, 2024
05e7094
fix dataraces
Farber98 Oct 18, 2024
70fc5ac
solve data race
Farber98 Oct 18, 2024
d7fd904
solve data races
Farber98 Oct 18, 2024
60adedc
tiimeouut
Farber98 Oct 18, 2024
3a642ea
remove noisy logs
Farber98 Oct 18, 2024
500a438
fix data races
Farber98 Oct 19, 2024
718e6e7
fix races
Farber98 Oct 19, 2024
3bb3a50
simplify tests
Farber98 Oct 19, 2024
02599b4
reduce blocks file
Farber98 Oct 24, 2024
9e23f72
rename blockHistoryDepth to blockHistorySize
Farber98 Oct 24, 2024
cf59a6f
remove estimation method, refactor config and tests
Farber98 Oct 24, 2024
f0d1f24
fix typo
Farber98 Oct 24, 2024
f443a8a
remove eventually from multiple blocks estimator tests
Farber98 Oct 24, 2024
cb59bf4
improve tests and reduce helper block files
Farber98 Oct 24, 2024
eb787c7
Merge branch 'develop' into nonevm-714-multiple-blocks-bhe
Farber98 Oct 24, 2024
39553eb
err at initialization + dedup tests
Farber98 Oct 28, 2024
7cc40e9
add logs and skip when no relevant txs found
Farber98 Oct 28, 2024
03ef189
fix log
Farber98 Oct 28, 2024
2bcacd6
avg of medians
Farber98 Oct 30, 2024
3e280ba
Merge branch 'develop' into nonevm-714-multiple-blocks-bhe
Farber98 Oct 30, 2024
7475aef
fix lint ci failing
Farber98 Oct 30, 2024
ca7f840
order of fields in config matters
Farber98 Oct 30, 2024
014d1e2
nits
Farber98 Oct 31, 2024
97b09f3
use top level context in tests
Farber98 Oct 31, 2024
fc205d0
prevent underlying base changing when bumping
Farber98 Oct 31, 2024
213f7bc
prepare for config changes
Farber98 Oct 31, 2024
171fd1b
Revert "prepare for config changes"
Farber98 Nov 1, 2024
020405f
Revert "prevent underlying base changing when bumping"
Farber98 Nov 1, 2024
0c0f113
keep blockHistorySize near BlockHistoryPollPeriod
Farber98 Nov 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/solana/txm/txm_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@ func TestTxm_Enqueue(t *testing.T) {
lggr := logger.Test(t)
cfg := config.NewDefault()
mc := mocks.NewReaderWriter(t)
mc.On("GetLatestBlock", mock.Anything).Return(&rpc.GetBlockResult{}, nil).Maybe()
amit-momin marked this conversation as resolved.
Show resolved Hide resolved
mc.On("SlotHeight", mock.Anything).Return(uint64(0), nil).Maybe()
mc.On("SendTx", mock.Anything, mock.Anything).Return(solana.Signature{}, nil).Maybe()
mc.On("SimulateTx", mock.Anything, mock.Anything, mock.Anything).Return(&rpc.SimulateTransactionResult{}, nil).Maybe()
mc.On("SignatureStatuses", mock.Anything, mock.AnythingOfType("[]solana.Signature")).Return(
Expand Down
Loading