Skip to content

Commit b30864b

Browse files
feat(chain): Upgradability functionality (#2701)
* Adding nightly test for upgradability: checks that after proper number of epochs active protocol versoins match * Pipe protocol version via epoch manager/runtime * Working on weaving upgradable block headers * Make updatable BlockHeader compile. * Adding support for legacy communication protocl * Fix up networking to use oldest backward compatible version * Update sample genesis to use latest protocol, while adding marker for first backward compatible one * Remove backward compatibility. Bring protocol version from epoch manager to client * Adding database version for future migrations * Update rocksdb to 0.14 * Adding migration and update sample json * Fix merge conflict * Make Block data structure upgradable * Version tracking in the epoch manager * Bump protocol version after merge * Current protocol version in status request * Bump 0.6.2 & use Box * Move migration to the right place * Fix up merge conflicts * Fix comments * Reset Cargo.lock to master Co-authored-by: Alexander Skidanov <skidanov.alexander@gmail.com>
1 parent 29a5bf8 commit b30864b

92 files changed

Lines changed: 2419 additions & 2088 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 31 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chain/chain/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ lazy_static = "1.4"
1717
num-rational = "0.2.4"
1818
tracing = "0.1.13"
1919

20-
borsh = "0.6.1"
20+
borsh = "0.6.2"
2121

2222
near-chain-configs = { path = "../../core/chain-configs" }
2323
near-crypto = { path = "../../core/crypto" }

0 commit comments

Comments
 (0)