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

Chunks #1013

Merged
merged 89 commits into from
Sep 4, 2019
Merged

Chunks #1013

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
857d14e
Squashing all the chunks-related commits.
SkidanovAlex Jun 28, 2019
218c9b4
Fixing several receipts-related issues
SkidanovAlex Jul 4, 2019
2372f1b
All the machinery to make the stress test work with 20ms blocks, and …
SkidanovAlex Jul 18, 2019
d1627b8
State sync for shard state between epochs (a.k.a. Catchup)
SkidanovAlex Jul 25, 2019
4cab4bf
Adding gas usage and limit to the header to track relevant informatio…
ilblackdragon Jul 30, 2019
7c7f3f6
Remove usage of ..Default::default in proto conversions, which is hid…
ilblackdragon Jul 30, 2019
d2415b0
Merge branch 'staging' into chunks
SkidanovAlex Jul 30, 2019
3c2006b
Step 1. Add validator proposals are called from process_block. Additi…
ilblackdragon Jul 30, 2019
2853f31
Step 2. Move post_state_root into ChunkExtra with gas_used and valida…
ilblackdragon Jul 30, 2019
1a8f879
Merge remote-tracking branch 'origin/staging' into rewards
ilblackdragon Jul 30, 2019
9091418
Merge branch 'rewards' into chunks-validators
ilblackdragon Jul 30, 2019
07cfbd6
Step 3. Gas limit/usage & validator proposals propagate
ilblackdragon Jul 31, 2019
d7ad49e
Cleaned up tests in validator manager. First steps to make sure routi…
ilblackdragon Jul 31, 2019
132870c
Fix chain tests
ilblackdragon Jul 31, 2019
868b001
Change 100ms to 250ms block production for chunk_manager tests
ilblackdragon Jul 31, 2019
52faa42
Chunks + Validators (#1118)
ilblackdragon Jul 31, 2019
98acfbc
ChunkOneParts can be requested by peers that do not have account id
ilblackdragon Aug 1, 2019
31c7abf
change config
bowenwang1996 Aug 1, 2019
9897230
Working on fixing stake_nodes test
ilblackdragon Aug 1, 2019
93dd209
Merge branch 'staging' into validator-reward
bowenwang1996 Aug 1, 2019
79f3724
towards validator reward
bowenwang1996 Aug 2, 2019
10bd357
Merge remote-tracking branch 'origin/validator-reward' into chunks-va…
ilblackdragon Aug 2, 2019
d59802a
Initial epoch manager re-implementation
ilblackdragon Aug 2, 2019
fa67013
Rework num expected blocks
ilblackdragon Aug 2, 2019
4b48d7e
Rework NightshadeRuntime with new EpochManager. EpochManager uses epo…
ilblackdragon Aug 3, 2019
b68d218
Return back proposal rollover from previous epoch
ilblackdragon Aug 3, 2019
1745492
Send all the extras with the state sync; New epoch assignments in Key…
SkidanovAlex Aug 1, 2019
eeade16
Fix an issue by storing rollovers in the next upcoming epochs. Added …
ilblackdragon Aug 3, 2019
036f581
Make validator_kickout_threshold integer, test_deserialize passes
ilblackdragon Aug 3, 2019
429d9bc
Fix slashing carryover
ilblackdragon Aug 3, 2019
aa1eedd
Merge remote-tracking branch 'origin/chunks' into chunks-validators-2
ilblackdragon Aug 3, 2019
7e70803
Add a TestEnv to runtime tests to simplify writing tests for Nightsha…
ilblackdragon Aug 3, 2019
1a98a97
validator reward calculation
bowenwang1996 Aug 3, 2019
acdc8f1
Merge remote-tracking branch 'origin/chunks-validators-2' into valida…
bowenwang1996 Aug 3, 2019
885b652
Rename staked to stake in Account
ilblackdragon Aug 4, 2019
5af70e3
Add checks for NS Runtime (fails without validator account update logic)
ilblackdragon Aug 4, 2019
b661bb1
Remove one wrong usage of genesis_chunks
ilblackdragon Aug 4, 2019
d45839e
Remove second block clutch
ilblackdragon Aug 4, 2019
81b22c6
make tests compile
bowenwang1996 Aug 4, 2019
7d26b38
Remove runtime_fork as it's not currently possible to test on that level
ilblackdragon Aug 4, 2019
a9500ab
Merge remote-tracking branch 'origin/validator-reward' into chunks-va…
ilblackdragon Aug 4, 2019
34d88a0
Rename functions in RuntimeAdapter to match semantics of inputs and o…
ilblackdragon Aug 4, 2019
c0310a1
Remove genesis_chunks as it's a confusing thing. Fix issue if there a…
ilblackdragon Aug 4, 2019
bfdfa9a
WIP for getting enough other BPs in the network before starting to bu…
ilblackdragon Aug 4, 2019
8ef582e
Make run_nodes tests pass: wait for peers, check that announce accoun…
ilblackdragon Aug 5, 2019
4c6cab8
Finalize epoch after last block in the epoch
ilblackdragon Aug 5, 2019
1b438f3
Sync nodes passes (with some error in output, but gets to the goal)
ilblackdragon Aug 5, 2019
3cfdbd2
make test_validator_rotation work
bowenwang1996 Aug 5, 2019
b9d8e14
test_stake_nodes passes, other not. Handle issue when all validators …
ilblackdragon Aug 5, 2019
16b6938
Propagating error kind from EpochManager to Chain/Client to process E…
ilblackdragon Aug 5, 2019
875e670
If block's epoch_id is out of scope, we ignore this block
ilblackdragon Aug 5, 2019
3bfe118
Merge remote-tracking branch 'origin/validator-reward-2' into chunks-…
ilblackdragon Aug 5, 2019
eae30ef
Add initial tool to display chain
ilblackdragon Aug 5, 2019
a9bd096
Few fixed of logic between chunks and epoch manager
ilblackdragon Aug 6, 2019
49194c5
Finishign up state sync for the next epoch
SkidanovAlex Aug 8, 2019
dc5744b
Fixing orphan pool and finishing up stress test for cross-shard trans…
SkidanovAlex Aug 9, 2019
95f6c24
Fixing issues related to catching up not committing between blocks
SkidanovAlex Aug 9, 2019
183dc13
Add state root check in apply cunks
ilblackdragon Aug 9, 2019
5863a7c
Validator reward with runtime (#1152)
bowenwang1996 Aug 10, 2019
283c61b
Merge master into staging
ilblackdragon Aug 11, 2019
c231d67
Merge branch 'staging' into chunks
ilblackdragon Aug 11, 2019
accbd83
Merge branch 'update-staging' into chunks
ilblackdragon Aug 11, 2019
a79e92c
Fixing `sync_state_nodes` and one issue in `sync_nodes`
SkidanovAlex Aug 13, 2019
30ea864
Fixing more tests and issues
SkidanovAlex Aug 13, 2019
a0d6bb0
use heavy_test
bowenwang1996 Aug 13, 2019
00c562a
Word towards supporting fast syncing for multiple shards, and various…
SkidanovAlex Aug 14, 2019
ea785c7
Fixing a test compilation error introduced by my previous commit
SkidanovAlex Aug 14, 2019
ad8551c
Downloading correct block during state sync
SkidanovAlex Aug 15, 2019
6a59a63
Fixing bug #1183: state root should not be indexed by the chunk hash
SkidanovAlex Aug 16, 2019
1cf9ee8
Re-enable collect block approvals (#1184)
bowenwang1996 Aug 17, 2019
b130c92
Fixing a bug in test infra
SkidanovAlex Aug 17, 2019
a0858bd
add num_shards to KeyValueRuntime and fix some tests
bowenwang1996 Aug 18, 2019
2cfddf2
Implement kickout for chunk producers (#1204)
bowenwang1996 Aug 23, 2019
e2b0c4a
Merkle proofs for receipts (#1216)
Aug 28, 2019
85f69df
Allow validator info to be queried through RPC (#1159)
bowenwang1996 Aug 28, 2019
b8492dc
test_catchup_random_single_part_sync (#1233)
Aug 29, 2019
50ff635
Cleaning up chunks (#1241)
SkidanovAlex Aug 29, 2019
6f99288
Merge branch 'staging' into chunks
ilblackdragon Aug 30, 2019
23cb69d
Compiles, start to fix tests
ilblackdragon Aug 30, 2019
9971cf8
Continue fixing merge issues
ilblackdragon Sep 1, 2019
c2c7ada
Merge remote-tracking branch 'origin/chunks' into chunks
ilblackdragon Sep 1, 2019
f0a99e6
Fix couple more issues: not committing reward changes, properly commi…
ilblackdragon Sep 1, 2019
cb7b910
Merge remote-tracking branch 'origin/staging' into chunks-staging
ilblackdragon Sep 1, 2019
84ea289
Switch off test logging in integration tests
ilblackdragon Sep 1, 2019
46cb1e3
Support for running chunks testnets
ilblackdragon Aug 28, 2019
3538c75
Fix test_sync_headers_fork, because KeyValueRuntime switches epoch af…
ilblackdragon Sep 1, 2019
3980a2d
fixing catching_up tests (#1251)
Sep 2, 2019
e3d6b7b
Fix block production (#1253)
ilblackdragon Sep 4, 2019
57616ca
Run chunks testnet (#1255)
ilblackdragon Sep 4, 2019
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 .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ test_nearlib:
- release_build
script:
- ./scripts/test_nearlib.sh
only:
- schedules

#test_pynear:
# stage: libs
Expand Down
1,515 changes: 817 additions & 698 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ members = [
"runtime/near-vm-runner",
"runtime/near-vm-runner-standalone",
"chain/chain",
"chain/chunks",
"chain/epoch_manager",
"chain/pool",
"chain/client",
"chain/network",
Expand Down
4 changes: 4 additions & 0 deletions chain/chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ borsh = { git = "https://github.com/nearprotocol/borsh.git" }
near-crypto = { path = "../../core/crypto" }
near-primitives = { path = "../../core/primitives" }
near-store = { path = "../../core/store" }

[features]
# if enabled, we assert in most situations that are impossible unless some byzantine behavior is observed.
byzantine_asserts = []
Loading