v0.3.1
Pre-release
Pre-release
This is a pre-release compatible with the Polkadot v0.8 runtime API and the Kusama and Polkadot networks.
New Features
- use
GlobalKeystore
inlib/runtime
package, update crypto runtime APIs accordingly - add BIP39 functionality for sr25519, update crypto runtime APIs accordingly
- implement
--rewind
to rewind chain to a specific block for testing - handle block justifications when syncing, mark block finalized when a response is received and prune blocktree
- update
system_peers
RPC call to return peer info collected from network handshakes - implemented persistent peerstore for the network; peerstore is now saved to disk
Improvements
- filter out local addresses from advertised addresses
- clean up
trie.Trie
API; no longer returns error for cases that don't error - update
blocktree.getNode
to check leaves of blocktree first, improving CPU usage - improve sync queue request management
- update network scoring so that peers with highest score are requested from first
Bug Fixes
- fix usage of
trie.Snapshot
and ensure previous tries don't get modified - if node shuts down abnormally, causing some database info to be missing, restart chain from last finalized block
- update
ext_misc_runtime_version_version_1
to return correctVersion
encoding - fix
trie.ClearPrefix
andtrie.GetAllKeysWithPrefix
based on syncing issues - replace
trie.NextKey
inTrieState
withtrie.GetAllKeysWithPrefix
and manual iteration for now based on syncing issues - fix clearing of digests before
execute_block
call, enabling Polkadot compatibility
Deprecated
- deprecated the legacy runtime API (v0.6)