Skip to content

Commit

Permalink
feat(chain): Upgradability functionality (#2701)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
ilblackdragon and SkidanovAlex authored Jun 8, 2020
1 parent 29a5bf8 commit b30864b
Show file tree
Hide file tree
Showing 92 changed files with 2,419 additions and 2,088 deletions.
60 changes: 31 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chain/chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lazy_static = "1.4"
num-rational = "0.2.4"
tracing = "0.1.13"

borsh = "0.6.1"
borsh = "0.6.2"

near-chain-configs = { path = "../../core/chain-configs" }
near-crypto = { path = "../../core/crypto" }
Expand Down
Loading

0 comments on commit b30864b

Please sign in to comment.