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

[Tools] Genesis Wizard #1243

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
1b18a7a
For 0L genesis tools for hard forks, and migrations: create a MoveVm …
0o-de-lally Jan 25, 2023
4c5e0d2
wip testing fakeexector for account migrations
0o-de-lally Feb 2, 2023
4e1b6cb
Scaffolding tests for v6 genesis fork. first cleanup deprecated modules.
0o-de-lally Jan 25, 2023
d5b72e1
add fixtures for testing recovery genesis
0o-de-lally Jan 25, 2023
074636d
cleanup fixtures
0o-de-lally Jan 26, 2023
8ca37d0
integration test using blob from fixture to start a diem-node in test…
0o-de-lally Jan 26, 2023
e1b75c6
patch github actions tests
0o-de-lally Jan 26, 2023
757648c
full e2e test from db backup to starting a node
0o-de-lally Jan 27, 2023
19bd78f
Add diem_logger as per @corythian plus comments.
0o-de-lally Feb 1, 2023
1e5f1c6
query nodes to check if onchain state is the same as recovery.
0o-de-lally Feb 1, 2023
270f569
- include db reader util to inspect a genesis.blob.
0o-de-lally Feb 6, 2023
c5b9fa4
test to check validator count. cleanup test utlis
0o-de-lally Feb 6, 2023
e7df8b6
cleanup tests
0o-de-lally Feb 6, 2023
66c4ffe
stub a "check" feature, to check a json file agains the output genesi…
0o-de-lally Feb 6, 2023
203ac54
finish balance comparison with error list.
0o-de-lally Feb 6, 2023
7c43037
clean
0o-de-lally Feb 6, 2023
12e6479
test to create single validator and check output.
0o-de-lally Feb 7, 2023
6bc8809
skip comparing system zero address.
0o-de-lally Feb 7, 2023
6156a0b
cargo fix
0o-de-lally Feb 7, 2023
6da792c
cargo fmt
0o-de-lally Feb 7, 2023
6a4f3d6
create function to start a vm executor, and uses a function pointer t…
0o-de-lally Feb 7, 2023
886bec0
experimenting with alternative way of starting a vm genesis session
0o-de-lally Feb 7, 2023
1766888
runs
0o-de-lally Feb 7, 2023
f0b6c3b
cleanup
0o-de-lally Feb 8, 2023
6cbe210
need to explicitly set the validators at genesis
0o-de-lally Feb 8, 2023
395568c
test to confirm genesis validator set, is the same as defined set.
0o-de-lally Feb 8, 2023
fded61e
tests for validator set and balance passing
0o-de-lally Feb 8, 2023
e1c43b0
change fixtures, make node start from command line
0o-de-lally Feb 8, 2023
979e811
can start a test node from genesis blob
0o-de-lally Feb 9, 2023
20590e0
can genesis tools test can start a node from a genesis and query for …
0o-de-lally Feb 9, 2023
de04d53
make ol version of swarm config generator in ol/smoke_tests
0o-de-lally Feb 9, 2023
204ef91
wip
0o-de-lally Feb 9, 2023
478a270
move legacyRecovery to ol/types. So now we can run the user migration…
0o-de-lally Feb 12, 2023
682c017
create GenesisMigration user migration test. Builds.
0o-de-lally Feb 12, 2023
e88bdfa
ol/genesis-tools builds with refactor
0o-de-lally Feb 12, 2023
f96281a
refactored with clean build
0o-de-lally Feb 12, 2023
a9d59cb
minor refactors
0o-de-lally Feb 12, 2023
67dd432
can migrate the balance of end users with new design
0o-de-lally Feb 12, 2023
e80ea3c
migration successfully migrates balances of users, validators, and op…
0o-de-lally Feb 13, 2023
a2fe6c5
cleanup unused files. clippy,
0o-de-lally Feb 16, 2023
0908511
tests passing
0o-de-lally Feb 16, 2023
bc23fce
PoF requires all nodes to have equal weight in consensus per the paper.
0o-de-lally Jan 27, 2023
8520f53
initial scaffold of proof-of-fee auction. Borrows code from NodeWeigh…
0o-de-lally Jan 27, 2023
3a5eed2
implement seat filling algo, which considers the 1/3 unproven node li…
0o-de-lally Jan 27, 2023
14ebdc0
patch
0o-de-lally Jan 27, 2023
b0d2b5c
patch
0o-de-lally Jan 27, 2023
ff64b82
builds
0o-de-lally Jan 28, 2023
d2878ba
implement vm function to pay fee from user account
0o-de-lally Feb 9, 2023
ec8a171
all validators are charged fee at epoch boundary
0o-de-lally Feb 9, 2023
43454a5
cleanup validator set proposal functions
0o-de-lally Feb 9, 2023
e08be77
refactor jail function at epoch boundary
0o-de-lally Feb 9, 2023
988f34c
make epoch boundry _meta_epoch.move pass
0o-de-lally Feb 9, 2023
a2edff5
filter for vouches on proof of fee
0o-de-lally Feb 9, 2023
6dd4c4b
initialize val account with a PoF struct
0o-de-lally Feb 9, 2023
b6e854a
epoch reconfiguration meta tests passing. PoF bid initialization unit…
0o-de-lally Feb 9, 2023
11737c1
patch issue with failover
0o-de-lally Feb 10, 2023
e119159
add bid restrictions, and checking upon seating
0o-de-lally Feb 10, 2023
8f18276
burn excess fees than needed for validators
0o-de-lally Feb 10, 2023
eb16ff3
reward thermostat initial implementation
0o-de-lally Feb 10, 2023
44c40fe
genesis init fee baseline
0o-de-lally Feb 13, 2023
699445b
patch bug in thermostat
0o-de-lally Feb 13, 2023
708fcc8
more tests for fill_seats, and thermostat. patches
0o-de-lally Feb 13, 2023
4757462
test
0o-de-lally Feb 13, 2023
a9691be
consolidate validator audits, check for the case that there are fewer…
0o-de-lally Feb 14, 2023
d900ecd
add test fixtures, modify some APIs "tell don't ask" pattern. Add sev…
0o-de-lally Feb 14, 2023
ea9980b
add unit tests for thermostat. Patch a couple bugs
0o-de-lally Feb 14, 2023
f9ca3a5
tests for thermostat increase/decrease
0o-de-lally Feb 14, 2023
dfb99d6
deprecate Audit.move, and create tests for qualifications in Proofoff…
0o-de-lally Feb 15, 2023
35e1383
Jailing mechanism needs update after deprecating Towers. Proposing he…
0o-de-lally Feb 15, 2023
4088728
audit tests for vouch, expired bids, no_funds
0o-de-lally Feb 15, 2023
c435b97
covered all proof of fee functions, tests for all common scenarios of…
0o-de-lally Feb 15, 2023
b8937e7
patch seating failover
0o-de-lally Feb 15, 2023
95f2727
Clean up Cases.move. Patch Vouch tests fixtures
0o-de-lally Feb 15, 2023
f9725b7
adjust fixtures for reconfiguration tests, deprecate some tests, patc…
0o-de-lally Feb 15, 2023
2eb96a1
patch all reconfig test fixtures. remove deprecated burn tests.
0o-de-lally Feb 15, 2023
23c6175
continue patching tests and removing deprecated scenarios
0o-de-lally Feb 16, 2023
8acbb47
All transactional tests passing!
0o-de-lally Feb 16, 2023
90239ae
implement vm function to pay fee from user account
0o-de-lally Feb 9, 2023
0f5eefa
cleanup validator set proposal functions
0o-de-lally Feb 9, 2023
a1ed934
refactor jail function at epoch boundary
0o-de-lally Feb 9, 2023
2976835
make epoch boundry _meta_epoch.move pass
0o-de-lally Feb 9, 2023
a705660
initialize val account with a PoF struct
0o-de-lally Feb 9, 2023
bdc40c1
add bid restrictions, and checking upon seating
0o-de-lally Feb 10, 2023
8468710
genesis initialization of musical chairs struct
0o-de-lally Feb 10, 2023
ffd3fb0
musical chairs heuristic draft complete.
0o-de-lally Feb 10, 2023
de46ae0
epoch boundary calls musical chairs to set next val size
0o-de-lally Feb 10, 2023
75084a0
transactional tests WIP
0o-de-lally Feb 10, 2023
7e910f6
patch rebase issue
0o-de-lally Feb 13, 2023
d17ca87
add tests for eval_compliance. all transactional tests passing!
0o-de-lally Feb 17, 2023
6e2a19e
rename variable in Globals
0o-de-lally Feb 17, 2023
21a12bf
patch test, remove deprecated.
0o-de-lally Feb 18, 2023
f470f23
create first stubs of Pledge Accounts, a primitive service for infra …
0o-de-lally Feb 11, 2023
a95455d
list pledgers on beneficiary struct
0o-de-lally Feb 11, 2023
8a16544
can withdraw from all accounts
0o-de-lally Feb 11, 2023
35b37f6
pledge account feature complete, except for withdrawing of coins
0o-de-lally Feb 11, 2023
2aa686c
finalize infraescrow wrapper on pledge accounts
0o-de-lally Feb 11, 2023
aa2cb36
Vm can withdraw funds
0o-de-lally Feb 11, 2023
5efa61e
infra escrow can withdraw
0o-de-lally Feb 12, 2023
b5abedc
adding tests, patching.
0o-de-lally Feb 17, 2023
5a8118c
tests for pledge, withdraw unit, withdraw e2e, revoke
0o-de-lally Feb 17, 2023
3ba3d55
change APIs to use coins, not u64
0o-de-lally Feb 17, 2023
1a11b27
now using coins instead of temp values
0o-de-lally Feb 17, 2023
a38a072
infra escrow and pledges use coins. add helpers to withdraw coins. pa…
0o-de-lally Feb 18, 2023
45728fa
make pledge withdrawals proportionate to balances
0o-de-lally Feb 20, 2023
22a17ca
Refactor paying of fees based on Infra Escrow. Builds. Tests need to …
0o-de-lally Feb 20, 2023
0dcdee0
reordering the epoch boundary pipeline.
0o-de-lally Feb 20, 2023
b4f9f04
refactor burning of excess network fees at boundary
0o-de-lally Feb 20, 2023
ef28a7a
handle zero transaction fees cases
0o-de-lally Feb 21, 2023
9066c41
update .exp files on tests
0o-de-lally Feb 21, 2023
7649f7e
more tests for val subsidy
0o-de-lally Feb 21, 2023
98c2fb2
patching tests
0o-de-lally Feb 21, 2023
5f7ee20
refactor burn.move patch tests
0o-de-lally Feb 21, 2023
1bc0a96
patching testnet build scripts
Feb 22, 2023
4b6b58f
cleanup initialization of testnet accounts
Feb 22, 2023
a983758
use the verify command to check genesis and key state
Feb 22, 2023
076218a
makefile
Feb 22, 2023
a8e8d0d
update documentation and minor tweaks
Feb 22, 2023
bed671b
sleep 2 secs before set waypoint
Feb 22, 2023
5405aac
fix getting waypoints
Feb 22, 2023
484b24b
makefile
Feb 22, 2023
542871a
remove deprecated doc
0o-de-lally Feb 23, 2023
5c447a3
txs transaction apis for setting and retracting bids.
0o-de-lally Feb 23, 2023
274dc6f
test for set and retract
0o-de-lally Feb 23, 2023
42bb60a
implement vm function to pay fee from user account
0o-de-lally Feb 9, 2023
bdfbda2
cleanup validator set proposal functions
0o-de-lally Feb 9, 2023
b6644fe
refactor jail function at epoch boundary
0o-de-lally Feb 9, 2023
973011a
make epoch boundry _meta_epoch.move pass
0o-de-lally Feb 9, 2023
b62da47
initialize val account with a PoF struct
0o-de-lally Feb 9, 2023
b296676
add bid restrictions, and checking upon seating
0o-de-lally Feb 10, 2023
367b20c
genesis initialization of musical chairs struct
0o-de-lally Feb 10, 2023
94831be
musical chairs heuristic draft complete.
0o-de-lally Feb 10, 2023
ced5a4f
epoch boundary calls musical chairs to set next val size
0o-de-lally Feb 10, 2023
d3abc5e
transactional tests WIP
0o-de-lally Feb 10, 2023
11ab084
patch rebase issue
0o-de-lally Feb 13, 2023
c0880b5
add tests for eval_compliance. all transactional tests passing!
0o-de-lally Feb 17, 2023
0c40d56
rename variable in Globals
0o-de-lally Feb 17, 2023
d94dc8d
patch test, remove deprecated.
0o-de-lally Feb 18, 2023
c88bc6f
add bid restrictions, and checking upon seating
0o-de-lally Feb 10, 2023
e4ddb75
genesis initialization of musical chairs struct
0o-de-lally Feb 10, 2023
d40524b
create first stubs of Pledge Accounts, a primitive service for infra …
0o-de-lally Feb 11, 2023
e9838f6
list pledgers on beneficiary struct
0o-de-lally Feb 11, 2023
133ae03
can withdraw from all accounts
0o-de-lally Feb 11, 2023
5731916
pledge account feature complete, except for withdrawing of coins
0o-de-lally Feb 11, 2023
8204fa0
finalize infraescrow wrapper on pledge accounts
0o-de-lally Feb 11, 2023
ffc3d6a
Vm can withdraw funds
0o-de-lally Feb 11, 2023
f551d7d
infra escrow can withdraw
0o-de-lally Feb 12, 2023
3173254
adding tests, patching.
0o-de-lally Feb 17, 2023
5e94738
tests for pledge, withdraw unit, withdraw e2e, revoke
0o-de-lally Feb 17, 2023
ec0f1c4
change APIs to use coins, not u64
0o-de-lally Feb 17, 2023
b1863c4
now using coins instead of temp values
0o-de-lally Feb 17, 2023
39339ad
infra escrow and pledges use coins. add helpers to withdraw coins. pa…
0o-de-lally Feb 18, 2023
8b330d2
make pledge withdrawals proportionate to balances
0o-de-lally Feb 20, 2023
26bbfbd
Refactor paying of fees based on Infra Escrow. Builds. Tests need to …
0o-de-lally Feb 20, 2023
b0b63fb
reordering the epoch boundary pipeline.
0o-de-lally Feb 20, 2023
d66450b
refactor burning of excess network fees at boundary
0o-de-lally Feb 20, 2023
b2540f2
handle zero transaction fees cases
0o-de-lally Feb 21, 2023
5fcbb06
update .exp files on tests
0o-de-lally Feb 21, 2023
a1ba41a
more tests for val subsidy
0o-de-lally Feb 21, 2023
c562ec7
patching tests
0o-de-lally Feb 21, 2023
96cd19f
refactor burn.move patch tests
0o-de-lally Feb 23, 2023
a6e0eb0
Assorted minor changes to genesis scripts. Merge branch 'v6-0d-rc.0'
0o-de-lally Feb 23, 2023
d908a41
refactor recovery genesis to allow for a full Validator type to be pa…
0o-de-lally Feb 23, 2023
267c487
parsing securebackend strings
0o-de-lally Feb 23, 2023
e47b9c6
can get Validator vector from github genesis repo
0o-de-lally Feb 24, 2023
4c8710c
make file to test forking genesis
0o-de-lally Feb 24, 2023
632dd55
cleaning up logs. Progressbar for long migration
0o-de-lally Feb 24, 2023
f5443cd
fix formatting of stdout progress
0o-de-lally Feb 24, 2023
19e5ed3
wip genesis tools tests
0o-de-lally Feb 24, 2023
24b81f3
Merge branch 'v6-0d-choose-vals-genesis' into v6-0d-genesis-patches
0o-de-lally Feb 24, 2023
7a435f7
patch regression in vouches
0o-de-lally Feb 24, 2023
5fa2fdd
patch setting waypoint
0o-de-lally Feb 24, 2023
4095be6
patch genesis blob for tests. cli format
0o-de-lally Feb 27, 2023
4ad610c
makefile v6 workflow helpers and patches
Feb 27, 2023
5ab6462
state parsing info patch
Feb 27, 2023
0c2a002
format
Feb 27, 2023
b556a48
makefile patches
Feb 27, 2023
5a55225
documentation
Feb 27, 2023
93f019f
patch makefile
0o-de-lally Feb 27, 2023
f340b93
refactoring move annotation which is used for queries.
0o-de-lally Feb 28, 2023
f1da95b
clean
0o-de-lally Feb 28, 2023
3fbe012
scaffold for genesis wizard
0o-de-lally Feb 28, 2023
101d317
wip
0o-de-lally Feb 28, 2023
a48e1a1
refactoring onboardin
0o-de-lally Feb 28, 2023
1da22f6
refactoring onboard
0o-de-lally Feb 28, 2023
034ed5c
gross refactoring to make the github genesis work as a library
0o-de-lally Feb 28, 2023
be42125
cleanup
0o-de-lally Mar 1, 2023
121b95a
patches. uses correct git account
0o-de-lally Mar 1, 2023
b060fa8
add validator config struct
nonast Mar 1, 2023
3070000
send validator config to github
nonast Mar 1, 2023
e2c2709
add genesis pull request
nonast Mar 1, 2023
0a24808
add epoch
nonast Mar 2, 2023
78cb948
Merge pull request #1 from nimadebi/v6-0d-wizard-genesis
0o-de-lally Mar 2, 2023
8375271
wizard runs genesis.
0o-de-lally Mar 2, 2023
dbc6cc3
fix
0o-de-lally Mar 2, 2023
b093c9b
cleanup
0o-de-lally Mar 2, 2023
9483386
patch
0o-de-lally Mar 2, 2023
a802d14
workflow patches
0o-de-lally Mar 2, 2023
7867a7d
cleanup
0o-de-lally Mar 2, 2023
1afc03c
cleanup
0o-de-lally Mar 2, 2023
b573d14
revert makefile
0o-de-lally Mar 2, 2023
4496eb8
makefile
0o-de-lally Mar 2, 2023
e15a42a
save api key
0o-de-lally Mar 2, 2023
b66a1d5
workflow patches
0o-de-lally Mar 2, 2023
2363875
complete all features of genesis wizard
0o-de-lally Mar 3, 2023
4f656f1
check for existing snapshot
nonast Mar 4, 2023
f7e8887
fix
nonast Mar 4, 2023
dcbe647
fix
nonast Mar 4, 2023
ed5a998
fix snapshot path
nonast Mar 4, 2023
04df840
cleanup
nonast Mar 4, 2023
7fdda59
fixed total process
nonast Mar 4, 2023
92001c3
create 0L folder when gh keys entered
nonast Mar 5, 2023
40e9732
cleanup comments
nonast Mar 5, 2023
cdfdfc5
Merge pull request #3 from nimadebi/v6-0d-wizard-genesis
0o-de-lally Mar 10, 2023
259cad6
add node files generation
nonast Mar 19, 2023
72ceae8
clean up
nonast Mar 19, 2023
de52c39
Merge pull request #4 from nimadebi/v6-0d-wizard-genesis
0o-de-lally Mar 30, 2023
b8b1f9f
Cleanups from PR reviews.
0o-de-lally Apr 5, 2023
8dbed40
Squashed commit of the following:
0o-de-lally Apr 11, 2023
fa65eb7
cleanup
0o-de-lally Apr 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/forge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-

- name: Build stdlib
run: make stdlib
run: sh ol/util/build-stdlib.sh

- name: Run Forge Local Tests
run: cargo r -p forge-cli -- test local-swarm
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
run: sudo apt-get install -y lld

- name: build stdlib
run: make stdlib
run: sh ol/util/build-stdlib.sh

- name: smoke tests
run: CARGO_ARGS="--color never" make smoke-test
run: cargo t -p smoke-test -- --test-threads=1 test_basic_fault_tolerance --nocapture
# todo get the other smoke tests running
continue-on-error: true
3 changes: 3 additions & 0 deletions .github/workflows/tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ jobs:
- name: cli tests
run: cd ol/cli && NODE_ENV=test cargo test
continue-on-error: true
- name: genesis tests
run: cd ol/genesis-tools && NODE_ENV=test cargo test
continue-on-error: true
Loading