Tomasz Drwięga
d2cfd7b9dc
Allow runtime to return transaction validation error codes ( #1534 )
...
* Allow runtime to return more detailed transaction validation errors.
* Re-use ApplyError codes and update test-runtime.
* Fix pool tests.
* Revert using Compact for validity.
2019-01-29 19:06:05 +01:00
Stanislav Tkach
473721f959
Migrate node (cli, executor, primitives and runtime) to the 2018 edition ( #1589 )
2019-01-29 17:57:56 +01:00
Stanislav Tkach
d796e09f02
Migrate tx-graph, tx-pool and trie to the 2018 edition ( #1611 )
2019-01-29 16:25:03 +01:00
Stanislav Tkach
e6839d2d41
Migrate executor, xinherens, keyring and keystore to 2018 edition ( #1585 )
2019-01-29 14:30:07 +01:00
thiolliere
ecffe0c371
impl Mul + saturating_mul by converting in u64 ( #1610 )
2019-01-29 13:36:34 +01:00
Frank Prößdorf
a541ee8c05
Fix typo in chain_ops ( #1597 )
2019-01-29 13:35:38 +01:00
Stanislav Tkach
8247ad5613
Migrate subkey and chain-spec-builder to the 2018 edition ( #1605 )
2019-01-29 12:47:40 +01:00
jkcomment
24c531cf7b
Fix generate node name with less then 32 characters ( #1596 )
...
* fix generate node name with less then 32 characters
* refactor generate_node_name
2019-01-29 12:46:18 +01:00
Robert Habermeier
ced9e72824
Download unknown but announced forks ( #1604 )
...
* test reproducing fork sync issues
* update to new announce_block API
* Download unknown forks
* Reverted download_stale
* Avoid cloning the hash
* Typo
2019-01-28 16:41:33 -03:00
Svyatoslav Nikolsky
431ad3ca76
finalize multiple blocks at once ( #1601 )
2019-01-28 14:16:30 -03:00
Robert Habermeier
d027123059
GRANDPA: announce blocks we vote on to peers ( #1593 )
...
* announce blocks we vote on to peers (missing network impl)
* Implemented 'announce'
* Fixed test
* improve announce docs and add logging
* Track recently announced blocks
2019-01-28 16:41:36 +00:00
thiolliere
0078927ac5
update codec and grandpa ( #1582 )
...
* update codec
* use new codec
* update grandpa code
* build .lock and binaries
2019-01-28 14:16:17 +01:00
thiolliere
f70fd6e450
set link-arg --export-table for wasm builds ( #1598 )
2019-01-28 12:41:52 +01:00
Robert Habermeier
86c5f78805
more logging around pending GRANDPA changes ( #1587 )
2019-01-27 14:53:57 +01:00
Arkadiy Paronyan
f16ddcb622
Only request justifications from available peers ( #1586 )
2019-01-25 20:09:56 -03:00
Gav Wood
c132e84572
Additional externs for ecdsa recovery and keccak ( #1583 )
...
* Additional externs for ecdsa recovery and keccak
* Update core/executor/src/wasm_executor.rs
Co-Authored-By: gavofyork <github@gavwood.com >
* Update core/executor/src/wasm_executor.rs
Co-Authored-By: gavofyork <github@gavwood.com >
* Fix grumble
* Grumble.
2019-01-25 19:07:02 +00:00
André Silva
5ddcbe0ca6
core: send justification requests in parallel to block requests ( #1563 )
...
* core: send justification requests in parallel to block requests
* core: fix grandpa test
2019-01-25 11:07:26 -03:00
André Silva
6e55812704
core: restrict grandpa voter on authority set change ( #1564 )
2019-01-25 11:05:39 -03:00
Robert Habermeier
0953521cc4
don't panic in best_containing ( #1559 )
...
* don't panic in best_containing
* core: client: fix borrow in best_containing
2019-01-25 12:16:37 +00:00
Benjamin Kampmann
ab4c70b379
Update dependencies ( #1527 )
...
* update to latest env_logger
* roundabout dependency update
* Update to latest vengen
* Update rand to 0.6
* Update to latest rng shuffle API
* Roundabout update of dependencies
* Update rustc_hex
* Update wasm
* Fix logging setup in tests
* revert to fix test
2019-01-25 12:44:41 +01:00
Bastian Köcher
b187695af7
Aura: Remove unused structures and adds SlotDuration::get() ( #1565 )
2019-01-25 10:56:46 +00:00
Bastian Köcher
27a882bfac
Refactor CLI handling ( #1368 )
...
* Rework cli handling
* Update readme
* Adds support for custom subcommands and extra run parameters
* Update readme
* Fixes compilation after master merge
* Make "Run" the default subcommand
Actually its hidden to the outside that is an subcommand.
* Rewrite CLI to work without breaking old CLI behavior
* Some cleanup
* Fix incorrect config setup
* Update README
* Fixes after merge
* Fixes incorrect README
2019-01-25 10:48:46 +00:00
André Silva
375e01e6b1
core: grandpa limits votes to 3/4 of the unfinalized chain ( #1554 )
...
* core: grandpa limits votes to 3/4 of the unfinalized chain
* core: test grandpa limited votes
2019-01-25 10:37:56 +00:00
Pierre Krieger
a1586df41b
Report the average network bandwidth ( #1551 )
...
* Report the average network bandwidth
* Fix concerns
2019-01-25 10:34:34 +00:00
Shawn Tabrizi
aeb6aa8b48
Refactor transfer() logic outside of dispatched function #1555 ( #1562 )
...
* Refactor `transfer()` logic outside of dispatched function
* Refactor `transfer()` logic outside of dispatched function
* Refactor `transfer()` logic outside of dispatched function
* Refactor `transfer()` logic outside of dispatched function
2019-01-25 10:33:39 +00:00
Bastian Köcher
6543207062
Fix inconsistency between CheckInherentsResult::new()/default() ( #1561 )
2019-01-25 11:22:04 +01:00
André Silva
661e91e2c7
core: fix transaction-pool tests ( #1557 )
2019-01-25 08:49:20 +01:00
Stanislav Tkach
82d014cf35
Remove TODO comment about unboxing state_machine error
2019-01-24 19:10:07 +02:00
Arkadiy Paronyan
f38aa0d2de
Test syncing to all forks ( #1544 )
2019-01-24 15:52:48 +00:00
Tomasz Drwięga
1b0d90cdf6
Optimize transaction pool pruning ( #1524 )
...
* Reuse tags of known transactions, avoid reimporting extrinsics from imported block.
* Fix tests for graph.
* Add more detailed docs.
* Avoid cloning and computing hashes twice.
2019-01-24 15:52:17 +00:00
Wei Tang
997c8b4020
Atomic operation and locking when importing a block ( #1489 )
...
* Add ClientImportOperation and remove an unused enum
* set_aux to insert_aux so that it can be called multiple times
* [WIP] All basic designs of lock_import_and_run
* [WIP] `apply_block` and `apply_aux` implementation
* Update client db with the new interface
* Always make sure we reset importing_block back to None
* Address grumbles
`apply_block` should be pub
* Add comments on insert_aux
* Fix compile
2019-01-24 15:51:53 +00:00
Stanislav Tkach
7f05bd959f
Migrate consensus (common, aura-primitives, aura, rhd) to 2018 edition ( #1548 )
2019-01-24 15:51:33 +00:00
Sergei Pepyakin
a5cafa68b1
Update srml-contract to Rust 2018. ( #1510 )
...
* Fix imports.
* Remove redundant binding
* Clean extern crates.
* Add comment
* Re-export macros from prelude
* Build fixes
* Update core/sr-std/src/lib.rs
Co-Authored-By: pepyakin <s.pepyakin@gmail.com >
2019-01-24 16:26:53 +01:00
Bastian Köcher
5be237030d
Fix warnings in substrate ( #1523 )
...
* Fix warnings in substrate
* More warnings removed and wasm updated
* Fixes error on stable and grumbles
* Update wasm files
* Add links to the github issue for replacing `error-chain`
2019-01-24 16:10:07 +01:00
Bastian Köcher
e5285e8a8d
Adds some derives for the inherent data stuff ( #1543 )
...
* Adds some derives for the inherent data stuff
This makes working with them easier.
* More defaults!
2019-01-24 16:09:45 +01:00
Tomasz Drwięga
2c3c4ac0e8
Add missing docs to sr-primitives. ( #1531 )
2019-01-24 13:49:39 +01:00
André Silva
cff0387af0
Reduce consensus gossip spam ( #1538 )
...
* core: keep known gossip messages for twice their expiration
* core: test expiration of known gossip messages
* core: only broadcast grandpa votes if authority in current set
* core: only broadcast grandpa commits if authority in current set
2019-01-23 22:12:51 +00:00
thiolliere
c0568ba3c6
update primitive-types and solve break changes ( #1535 )
2019-01-23 18:26:44 +01:00
Robert Habermeier
7c1f92b26f
log when it takes a while to import forks we need from GRANDPA ( #1533 )
2019-01-23 12:22:24 -03:00
Wei Tang
dd88dc6cd6
Split BlockImport and JustificationImport ( #1521 )
...
* Split BlockImport and JustificationImport
* Remove unused trait impl
* Fix compile
* Fix grandpa tests
* Fix network tests
2019-01-23 12:22:08 -03:00
André Silva
14e8be794f
core: fix grandpa authorities enacts_change ( #1530 )
2019-01-23 12:00:43 -03:00
joe petrowski
fe8fab030c
Split execute_and_import_block in client into two functions ( #1455 )
...
* type error
* borrow problem
* compiles but run error
* tests pass ready for review
* tests pass ready for review
* fix comments by rob
* removed clone
* style fix
* updating
* resolved conflicts
* fixed comments
2019-01-23 15:27:35 +01:00
Pierre Krieger
d30a8e0bc3
Log the clogging networking messages ( #1532 )
2019-01-23 15:24:25 +01:00
Pierre Krieger
cd86643f33
Report when peer is clogged ( #1528 )
2019-01-23 14:30:20 +01:00
Stanislav Tkach
28c37ef419
Migrate basic-authorship, cli and client-db crates to 2018 edition ( #1529 )
2019-01-23 14:27:40 +01:00
Bastian Köcher
ac065a96ba
Make impl_outer_inherent do not require Extrinsic to be imported ( #1526 )
2019-01-23 13:41:14 +01:00
Bastian Köcher
70b1af7b1e
Rewrite Inherent data ( #1488 )
...
* Implement new inherent data
* Fixes compilation on wasm
* Fixes after rebase
* Switch back to generate inherent stuff by macro
* Update after rebase
* Apply suggestions from code review
Co-Authored-By: bkchr <bkchr@users.noreply.github.com >
* Fix compilation after rebase
* Address grumbles
* Remove `InherentDataProviders` from `Client`
* Update wasm files after rebase
* Address grumbles
* Fixes compilation after latest merge
* Last fix
2019-01-22 17:52:08 +01:00
thiolliere
b14917e63f
compact Permill ( #1522 )
2019-01-22 15:17:26 +01:00
thiolliere
2492931944
compact param in calls ( #1499 )
...
* impl #[codec(compact)] for param
* update modules
* test all and build runtime
* Update srml/support/src/dispatch.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* Update srml/support/src/dispatch.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* delete wip comment
* update param to use #[compact] instead of Cmpact<>
* fmt
* impl metadata
* test metadata
* add compact attr test
* script buid
* update test
2019-01-22 14:42:13 +01:00
Benjamin Kampmann
8f38593def
Change trie deps from github to release ( #1520 )
2019-01-22 13:39:16 +01:00