Bastian Köcher
394eff6c2f
Update to schnorrkel 0.8.0 ( #3267 )
...
* Update to schnorrkel `0.8.0`
* Increase `spec_version`
* Bump schnorrkel to 0.8.3 (#3283 )
* Schnorrkel 0.8.1 (builds on bkchr upgrade branch)
* Add tests for known hard/soft derivation values
* Bump all schnorrkel versions
* Flatten for easier inspection
* 0.8.2
* 0.8.3
* Update subkey/Cargo.toml
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update `Cargo.lock`
* 0.8.4
* Fix cargo lock file.
* Adding an error message for `NotMarkedSchnorrkel` as that was missing.
Also fixing a typo, strage -> stage.
2019-08-07 12:59:54 +02:00
Pierre Krieger
b5b1c2a4d8
Rename on_demand to light_dispatch and various minor changes ( #3315 )
...
* Rename on_demand to light_server
* Small docs improvement
* Rename on_block_announce to update_best_number
* More minor documentation
* Light server -> light dispatch
* is_light_rq_response -> is_light_response
2019-08-07 12:40:49 +02:00
thiolliere
87e72d9327
Fix decl_storage map and linked_map for insert_ref ( #3316 )
...
* test
* fix
* bumpd version
* Update srml/support/procedural/src/storage/impls.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
2019-08-07 11:52:06 +02:00
thiolliere
4ed67e03a4
Update to parity-scale-codec ( #3232 )
...
* WIP: update codec
* WIP
* compiling
* WIP
* rename parity-scale-codec to codec
* WIP
* fix
* remove old comments
* use published crates
* fix expected error msg
* bump version
* fmt and fix
* remove old comment
* fix wrong decoding impl
* implement encode like for structures
* undo removal of old pending changes
* trailingzeroinput
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* update codec
* fmt
* version is 1.0.0
* show more error
* fmt
2019-08-06 19:36:23 +02:00
thiolliere
a0d442333f
Improve internal doc of inflation module ( #3288 )
...
* improve internal doc
* Apply suggestions from code review
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* correct spelling
* Apply suggestions from code review
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* improve not confusing expression
* improve general doc
2019-08-06 10:12:53 +02:00
Robert Habermeier
d5726d8e8a
fix BABE randomness calculation ( #3305 )
2019-08-05 20:50:37 -04:00
André Silva
a7c6950f1b
node: fix integration test transaction format ( #3306 )
2019-08-05 21:56:26 +02:00
Pierre Krieger
83b148f514
Mention that in_mem::Backend doesn't work ( #3250 )
...
* Mention that in_mem::Backend doesn't work
* Bigger warning
2019-08-03 10:33:53 +02:00
Sergei Pepyakin
f0856db12c
srml-contracts: Minor fixes to docs. ( #3262 )
...
* Adjust documentation.
* Bump impl_version.
* Update srml/contracts/src/wasm/runtime.rs
Co-Authored-By: Hero Bird <robbepop@web.de >
* Remove incorrect doc.
2019-08-02 19:53:33 +02:00
Pierre Krieger
c792dd358d
Switch RPCs to stable futures ( #3287 )
2019-08-02 19:52:55 +02:00
André Silva
aa86185648
node: use BABE predigest data to find authorship ( #3293 )
...
* node: use BABE predigest data to find authorship
* node: bump spec_version
* babe: use u32 for authority index
2019-08-02 19:52:36 +02:00
cheme
da8b91ae7b
Trie simplification. ( #2815 )
...
* switch to simple codec, trie broken for now
* Actualy use trie_root_noext
* align some hash, failing test on EMCH comment
* Fix trie code over layout instead of hash, revert legacy code for legacy
mainnet ??
* stub behind LayOut
* fix no_std
* temp solution for legacy trie behind feature legacy-key in various crate
* use remote project
* rc client db need prefix
* update trie deps
* bum spec runtime version
* Removing legacy as default.
* Switch mode to non legacy.
* bump runtime version
* Remove legacy trie compatibility features.
* fix warning
* bump version
* change hash on new test.
* Move dependency (#11 trie PR) patched to a parity repo.
Bench reverted to correct hasher.
Some renaming and doc improvments.
* ChildBitmap renaming to BitMap.
* Renaming of LayOut to Layout.
* formatting.
* Removing abreviation such as _ix nb_ or bm.
* Update deps and apply renaming 'Buff' -> 'Buffer'.
* Align to latest trie crates naming changes.
* Update trie dependency.
* Update trie dependency.
* change block_import test hash
* update trie deps (trie use new scale codec but it does not seems to be
an issue).
* update to use latest trie version (no mgmt of multiple radix).
* tabify
* Restoring test to 10 000.
* Use published crate, trie bench is currently down until publishing
(require another pr to update version).
* Update trie-bench.
2019-08-02 19:51:59 +02:00
Gavin Wood
7927e80bc6
Check the genesis hash in transactions regardless of era. ( #3286 )
...
* Check the genesis hash in transactions regardless of era.
* Fix check-fees, too.
* Undo.
* Subkey supports new signing.
* Remove unneeded type param.
* Bump tx version
* Build.
* Another build fix
* Build again
* Cleanup
* Another fix.
* Fix
* Fixes
* 6 second blocks.
* Fixes
* Build fix
* Fix
* Fix.
2019-08-02 18:30:20 +02:00
Gavin Wood
ae6c2f7f8c
Fix staking ( #3284 )
...
* 6 second blocks.
* Version bump
* Add test for slashable_balance()
2019-08-01 16:01:22 +02:00
Fedor Sakharov
17b9ef19c1
Slots should not try to catch panics. ( #3281 )
2019-08-01 14:37:02 +02:00
thiolliere
b504f5a7bb
Make staking add_reward_points_to_validator public ( #3273 )
...
* make staking add_reward_points_to_validator public
* make storage private
* bump version
2019-08-01 09:55:27 +02:00
Pierre Krieger
cb7383b6b6
Documentation and small cleanup in panic-handler ( #3249 )
...
* Documentation and small cleanup in panic-handler
* Apply suggestions from code review
Co-Authored-By: Sergei Pepyakin <s.pepyakin@gmail.com >
2019-08-01 09:53:53 +02:00
Sergei Pepyakin
de02aee156
srml-contracts: Deferred actions ( #3255 )
...
* Switch to deferred actions
* Make restore_to a deferred action.
* Bump version.
* Review fixes.
2019-08-01 09:52:59 +02:00
Pierre Krieger
780942192e
Fix telemetry not responding to pings ( #3272 )
2019-08-01 09:45:29 +02:00
Pierre Krieger
5b1b4b92b1
Telemetry connectivity issues are not WARN ( #3274 )
2019-08-01 09:45:08 +02:00
Pierre Krieger
f8db199b97
Replace the telemetry Mutex with a channel ( #3266 )
...
* Replace the telemetry Mutex with a channel
* Don't return Err() if channel is full
* Change polling pattern
* Add more issue numbers
2019-08-01 09:43:37 +02:00
André Silva
0aa3bbf202
extend flaming fir version details on README ( #3279 )
2019-08-01 09:42:37 +02:00
Pierre Krieger
083b14dadf
Fix infinite loop in telemetry ( #3275 )
2019-07-31 18:35:03 +01:00
ddorgan
6815ce59fe
Fix artifact location required for flaming fir deployments ( #3268 )
2019-07-31 17:49:04 +01:00
Bastian Köcher
31da4d249d
Don't set HEAP_PAGES in BasicExternalities ( #3244 )
...
* Don't set `HEAP_PAGES` in `BasicExternalities`
* Fix test
2019-07-31 09:58:06 +02:00
Tomasz Drwięga
04c115a6e9
Revert "Update schnorrkel to 0.7.0 ( #3261 )" ( #3264 )
...
This reverts commit a5fa1ddd99 .
2019-07-31 00:19:32 +02:00
Bastian Köcher
a5fa1ddd99
Update schnorrkel to 0.7.0 ( #3261 )
...
* Update schnorrkel to `0.7.0`
* Apply suggestions from code review
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* Increase `spec_version`
2019-07-30 17:46:05 -04:00
André Silva
c1640ef5da
node: update flaming fir chain spec ( #3258 )
...
* node: update BABE authority ids in staging testnet config
* node: update flaming fir chain spec
2019-07-30 22:44:02 +01:00
André Silva
bd052d8da4
babe: Disable unused median calculation ( #3251 )
...
* babe: don't execute median algorithm
* babe: checked sub in median calculation
* node: bump impl_version to make ci happy
* babe: remove forbid dead_code
2019-07-30 22:08:20 +01:00
Arkadiy Paronyan
1d5cd20c44
Synchronize state cache on finalization ( #3246 )
...
* Reorg test
* Fixed informant misreporting reorgs
* Update cache when reorg is caused by applying finality
* Test for finality reorg
* Simplified test
* Typo
Co-Authored-By: André Silva <andre.beat@gmail.com >
2019-07-30 22:07:57 +01:00
Jim Posen
1295260f2b
Remove unused imports introduced in #3239 . ( #3252 )
...
Partly due to interaction with #3191 .
2019-07-30 14:30:01 +02:00
Pierre Krieger
d0eb909b30
Properly stop block import on error ( #3240 )
...
* Stop block import after error
* Better diagnostic on error
2019-07-30 12:04:28 +01:00
Jim Posen
4c0934b2a7
srml-contracts: Forbid declaration of float types in contracts ( #3234 )
...
* srml-contracts: Forbid remaining uses of float types.
* Bump node runtime impl version.
2019-07-30 13:41:09 +08:00
André Silva
483ad60379
srml: babe: add expected block time and epoch duration constants ( #3241 )
...
* srml: babe: add expected block time constant
* srml: babe: expose epoch duration constant
* node: bump spec_version
* core: don't use moment type in test-runtime
* babe: add docs regarding c parameter
2019-07-30 13:39:33 +08:00
Pierre Krieger
20eb52d6bb
Allow creating a ChainSpec from a Vec<u8> ( #3233 )
...
* Allow creating a ChainSpec from a Vec<u8>
* Line widths
* Embedded -> Binary
* Remove from_embedded
2019-07-29 20:50:50 +02:00
Pierre Krieger
7658eb6b88
Fix master ( #3242 )
2019-07-29 19:43:03 +01:00
Pierre Krieger
0af5aadc5a
Add documentation for the client ( #3221 )
2019-07-29 17:21:28 +01:00
Jim Posen
8aa367c27a
Fix substrate factory CLI command ( #3239 )
...
* CLI execution flag for import-blocks and factory.
* Fix minimum_balance bug with CLI factory.
2019-07-29 17:06:13 +02:00
Max Inden
c9c0ad4756
core/network: Fix bad import %s/runtime_primitives/sr_primitives/ ( #3236 )
...
* core/network: Fix bad import %s/runtime_primitives/sr_primitives/
* Cargo.lock: Update consensus-common-primitives parity-codec version
* core/consensus/common: Remove obsolete package path
2019-07-29 15:55:57 +02:00
Kian Paimani
79feb23a22
Refactor sr_primitives. ( #3214 )
...
* refactor sr_primitives.
* Fix try build error.
* Line-width
* Ui test.
* Final fixes.
* Fix build again.
* bring back ui test.
* Fix unsigned import.
* Another ui fix.
* Also refactor substrate-primitives
* Fix benchmarks.
* Fix doc test.
* fix doc tests
2019-07-29 14:43:53 +02:00
Max Inden
cf80af9255
core/consensus,node/runtime: Declare and implement authorities endpoint ( #3207 )
...
The goal of the commit is to be able to retrieve the current set of
authorities without needing to know the concrete consensus mechanism in
place.
In order to achieve the above this commit introduces the
`core/consensus/common/primitives` crate, declaring the `ConsensusApi`
runtime API. In addition it implements the above mentioned trait
definition in `node/runtime` by returning the current authorities of the
BABE consensus mechanism.
2019-07-29 08:39:47 -04:00
Jim Posen
9388f48942
srml-contracts: Refactor to remove duplication between call and create code paths ( #3209 )
...
* srml-contracts: Change Ext interface to pass-by-value.
* srml-contracts: Refactor ExecutionContext to reduce duplication.
* srml-contracts: Refactor contracts Module to reduce duplication.
* Bump node runtime impl version.
2019-07-29 14:13:47 +02:00
Bastian Köcher
9303b9b7df
Remove IncrementalInput and fix wasm storage_into* ( #3224 )
2019-07-29 10:44:40 +02:00
thiolliere
852ed92861
staking need to get events ( #3217 )
2019-07-29 10:40:02 +02:00
Pierre Krieger
8c919e031b
Stop being generic over the message ( #3186 )
2019-07-29 09:29:06 +02:00
Pierre Krieger
9370a4a6b6
Clean up the basic-authorship crate ( #3206 )
...
* Switch consensus-common to new futures
* Fix tests
* More tests fixing
* Make Proposer, OnSlot and SyncOracle mut
* Make the Environment mut as well
* Fix test
* Fix Babe tests
* Babe fixes
* Fix CLI service tests
* Fix Babe tests
* Remove unnecessary trait bound
* Inline the code of BlockBuilder and AuthoringApi
* Remove warning lint
* Bounds simplification
* Imports simplification
* Don't panic on bad generated block
* Code style
* Add doc example
* Remove dependency on aura
* Order dependencies alphabetically
* Minor style
2019-07-27 20:24:51 -04:00
Pierre Krieger
ba55d31d44
Minor cleanup in native_executor.rs ( #3218 )
...
* Minor cleanup in native_executor.rs
* Fix tests
2019-07-27 15:41:22 +02:00
TriplEight
06268b9dba
Fixed debug flags ( #3215 )
...
* fixed debug flags
* test everything works
* test everything works 2
* sections are rewritten
* everything works
2019-07-26 19:15:15 +02:00
DemiMarie-parity
390d761078
Update dependencies ( #3140 )
2019-07-26 10:04:07 -04:00
André Silva
2b021ba4f1
node: Update BABE protocol parameters ( #3211 )
...
* node: update babe parameters to target 6 second block time
* node: add comment on MILLISECS_PER_BLOCK constant
2019-07-26 08:19:04 -04:00