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

Fetch Memberships from l1 #2390

Merged
merged 72 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
17b4c26
attempt to update stake tables
imabdulbasit Dec 11, 2024
d6304c1
cleanup and make epoch as key
imabdulbasit Dec 11, 2024
816f819
initialize the btree maps
tbro Dec 11, 2024
7f2eec7
remove prev_block_epoch
imabdulbasit Dec 12, 2024
6320f3f
wrap committee state in Arc<RwLock<>>
imabdulbasit Dec 12, 2024
6acf598
cargo sort
imabdulbasit Dec 12, 2024
2d04292
add stake back in l1_client
tbro Dec 12, 2024
5788626
Move `StaticCommittee` state into its own type.
tbro Dec 12, 2024
d74eb67
remove NewEpoch event
imabdulbasit Dec 13, 2024
56f3f73
permissioned_stake_table_contract as env var
imabdulbasit Dec 13, 2024
f3fa640
get contract addr from chain config
imabdulbasit Dec 13, 2024
012368d
make state as Arc<RwLock<HashMap<Epoch, StaticCommittee>>>
imabdulbasit Dec 13, 2024
1e88da2
fix imports for MembershipCommittee
imabdulbasit Dec 13, 2024
1fcbd92
cleanup
imabdulbasit Dec 13, 2024
50bfe89
move write lock
imabdulbasit Dec 13, 2024
d585efa
rename quorum to stake_table and da to da_stake_tables
imabdulbasit Dec 13, 2024
2694371
rename MembershipCommittees to EpochCommittees
imabdulbasit Dec 13, 2024
a14d2b4
remove some TODOs
tbro Dec 13, 2024
351bc27
da stakle table -> da members
imabdulbasit Dec 13, 2024
70b758d
fix test_fetch_stake_table: await for tx finalization
imabdulbasit Dec 13, 2024
ce740c8
pass in epoch to update fn
imabdulbasit Dec 13, 2024
1c314ba
hashmap to btreemap for indexed stake table
imabdulbasit Dec 13, 2024
f5f7f02
fix test_genesis_from_toml_with_optional_fields
imabdulbasit Dec 13, 2024
e178037
fix comment
tbro Dec 13, 2024
d9175b7
Small cleanup on trait methods
tbro Dec 13, 2024
79c1617
Return `Committee from updater
tbro Dec 13, 2024
475087a
fix
tbro Dec 13, 2024
c6b1b8c
rename `DAStakeTable` to `DaMembers`
tbro Dec 13, 2024
f4da7fd
workaround: insert stake table for epoch 1
sveitser Dec 16, 2024
6482b18
kill test that may hang
sveitser Dec 16, 2024
5c32108
Use sync locks for stake table state (#2404)
sveitser Dec 16, 2024
28dffec
rename DAMembers
tbro Dec 16, 2024
5685090
log when epochs aren't progressing
tbro Dec 16, 2024
0d68518
return empty `StakeTables` when l1 cache is unavailable
tbro Dec 16, 2024
cc3197d
we only need to distinguish betwen `RwLock`s
tbro Dec 16, 2024
a180214
Add `epoch_height` to `NodeState`
tbro Dec 16, 2024
161121e
fix light client proxy address for demos
imabdulbasit Dec 17, 2024
e8abebd
increase MAX_TXNS_NOT_INCREMENTING to 5
imabdulbasit Dec 17, 2024
4fa1984
patch hotshot
tbro Dec 17, 2024
70dbaf0
cargo lock
tbro Dec 17, 2024
a04ace9
add epoch upgrade type
imabdulbasit Dec 18, 2024
9f1d9ed
Revert "patch hotshot"
tbro Dec 18, 2024
53131fb
WIP: hotshot 0.5.83
sveitser Dec 19, 2024
721698a
Update hotshot-query-service
sveitser Dec 19, 2024
87e146b
fix double space
sveitser Dec 19, 2024
1e2fd09
Builder changes
QuentinI Dec 19, 2024
60f1427
cargo: remove patch
sveitser Dec 19, 2024
88aca4f
add `--keep-going` to lint
tbro Dec 19, 2024
6bf3060
Pull in updates from hotshot
tbro Dec 19, 2024
1c47fda
fix compile errors for the `Memberships` trait update
tbro Dec 19, 2024
9d0bf9c
Add rust binary to update permissioned stake table (#2410)
sveitser Dec 20, 2024
0fa1f3f
store next epoch qc
imabdulbasit Dec 20, 2024
5da92ff
Merge branch 'ma/hotshot-0.5.83' into ab/store-next-epoch-qc
imabdulbasit Dec 20, 2024
b9338c2
update query service
imabdulbasit Dec 20, 2024
688aedc
Update hotshot-* dependencies
sveitser Dec 20, 2024
9385491
Fix rust compilation
sveitser Dec 20, 2024
bd74fe5
store next epoch qc in persistence (#2422)
imabdulbasit Dec 20, 2024
6a6be1a
Merge branch 'ab/st' into ma/hotshot-0.5.83
imabdulbasit Dec 20, 2024
4eaf8f6
cargo fmt
sveitser Dec 20, 2024
59b61df
Cargo update and fix
tbro Jan 6, 2025
bfb3d08
drb compile errors
tbro Jan 6, 2025
87e80a6
Preliminary `add_epoch_root` implementation
tbro Jan 6, 2025
e3fba83
cleanup add_epoch_root
tbro Jan 6, 2025
efbedaf
add stake table contract address to EpochCommittee
tbro Jan 7, 2025
e6c1ccf
update sqlite dependencies
tbro Jan 7, 2025
0264600
update hotshot
tbro Jan 7, 2025
ed6c822
remove storage2 methods
tbro Jan 7, 2025
71046bc
update sequencer-sqlite deps
tbro Jan 7, 2025
f9c8799
upstream query-service fix
tbro Jan 8, 2025
dc5069b
update hotshot
tbro Jan 8, 2025
5cfa92d
fix message compat tests
imabdulbasit Jan 8, 2025
2f56726
WIP: hotshot 0.5.83 (#2417)
imabdulbasit Jan 8, 2025
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
11 changes: 7 additions & 4 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ default-filter = 'not (test(slow_) | package(tests))'
retries = 2

[[profile.default.overrides]]
# This test is fast if it works (usually about 150ms) but sometimes hangs,
# especially when running concurrently with other tests. Kill it after a while
# and retry up to 10 times.
filter = 'test(test_process_client_handling_stream_subscribe_node_identity)'
# These tests are fast if they work (usually about 150ms) but sometimes they
# hang, especially when running Concurrently with other tests. Kill after a
# while and retry up to 10 times to avoid failing the test suite.
filter = """
test(test_process_client_handling_stream_subscribe_node_identity) |
test(test_process_client_handling_stream_subscribe_voters)
"""
slow-timeout = { period = "2s", terminate-after = 1 }
retries = 10

Expand Down
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ ESPRESSO_BUILDER_ETH_ACCOUNT_INDEX=8
ESPRESSO_DEPLOYER_ACCOUNT_INDEX=9

# Contracts
ESPRESSO_SEQUENCER_LIGHT_CLIENT_PROXY_ADDRESS=0xf7cd8fa9b94db2aa972023b379c7f72c65e4de9d
ESPRESSO_SEQUENCER_LIGHT_CLIENT_PROXY_ADDRESS=0xed1db453c3156ff3155a97ad217b3087d5dc5f6e
tbro marked this conversation as resolved.
Show resolved Hide resolved
ESPRESSO_SEQUENCER_LIGHTCLIENT_ADDRESS=$ESPRESSO_SEQUENCER_LIGHT_CLIENT_PROXY_ADDRESS
ESPRESSO_SEQUENCER_PERMISSIONED_PROVER=0x14dc79964da2c08b23698b3d3cc7ca32193d9955
SPRESSO_SEQUENCER_PERMISSIONED_STAKE_TABLE_ADDRESS=0x8ce361602b935680e8dec218b820ff5056beb7af
ESPRESSO_SEQUENCER_PERMISSIONED_STAKE_TABLE_ADDRESS=0x8ce361602b935680e8dec218b820ff5056beb7af

# Example sequencer demo private keys
ESPRESSO_DEMO_SEQUENCER_STAKING_PRIVATE_KEY_0=BLS_SIGNING_KEY~lNDh4Pn-pTAyzyprOAFdXHwhrKhEwqwtMtkD3CZF4x3o
Expand Down
Loading
Loading