André Silva
f4c1c83667
srml-timestamp: define max timestamp drift in millis ( #4077 )
...
* srml-timestamp: define max timestamp drift in millis
* srml-timestamp: suffix MAX_TIMESTAMP_DRIFT with unit
2019-11-10 19:49:55 +01:00
Arkadiy Paronyan
7349a3a217
Don't search for authority set change block if delay is zero ( #4076 )
2019-11-10 19:09:36 +01:00
Arkadiy Paronyan
c58a9b7f05
Don't update common block on ancient block import ( #4073 )
2019-11-10 13:35:15 +01:00
Tomasz Drwięga
f5f4c2d480
Change max width to 100. ( #4072 )
2019-11-10 13:01:44 +01:00
Pierre Krieger
401e213aa2
Add a --no-private-ipv4 CLI option ( #4042 )
...
* Add a --no-private-ipv4 CLI option
* Fix tests
* Fix tests
2019-11-10 11:14:36 +01:00
Arkadiy Paronyan
9defa6a281
Further fix for common block update ( #4071 )
2019-11-09 15:46:43 +01:00
Pierre Krieger
f90fd34f81
Pass startup_time to telemetry ( #4069 )
2019-11-09 13:58:00 +01:00
Tomasz Drwięga
b5469c6e0c
Additional logging for the transaction pool. ( #4068 )
...
* Additional logging for the pool.
* Long line.
2019-11-09 13:22:21 +01:00
Arkadiy Paronyan
4e54dfac14
Improved cache documentation ( #4067 )
2019-11-09 12:36:47 +01:00
gabriel klawitter
663ff3db91
ci: add runtime version check ( #555 )
2019-11-09 10:46:36 +01:00
Bastian Köcher
38ac53434c
Fix the ui tests ( #4066 )
2019-11-09 10:34:17 +01:00
André Silva
94a5fcd9a6
grandpa: remove the periodic block announcer ( #4062 )
...
* grandpa: remove the periodic block announcer
* grandpa: remove periodic block announcer test
2019-11-09 09:11:24 +01:00
Arkadiy Paronyan
4b8578e7e4
Fix sync downloading ancient chains ( #4060 )
...
* Update best block on announcement
* Added a test
2019-11-09 09:11:13 +01:00
Joshy Orndorff
1789ed732f
Fix minor comment typo "do" -> "do not" ( #4054 )
2019-11-08 21:37:38 +01:00
Arkadiy Paronyan
2cd3b2bce1
Batch gossip messages ( #4055 )
2019-11-08 21:34:45 +01:00
Tomasz Drwięga
c3f6e5bd40
Introduce thread pool for transaction validation. ( #4051 )
2019-11-08 21:34:30 +01:00
André Silva
a8ce80b72d
grandpa: progressively increase target gossip peers ( #4050 )
...
* grandpa: stricter gossip message filtering
* gossip: remove filtered message on send_message
* gossip: add test for tracking of broadcast attempts
* grandpa: only restrict gossip if we're connected to more than 5 authorities
* grandpa: add test for progressive gossip
* grandpa: add test for gossip filtering on local non-authority node
* grandpa: fix doc
* gossip, grandpa: tabify
* grandpa: relax filtering logic for global messages
2019-11-08 20:08:14 +01:00
Pierre Krieger
1c0cb62567
Remove deprecated methods from NetworkSpecialization ( #553 )
2019-11-08 14:38:24 +01:00
thiolliere
77407e1694
fix inmemory ( #4049 )
2019-11-08 14:07:51 +01:00
Demi Obenour
5a26696432
Remove dependencies on OpenSSL ( #4036 )
...
* Remove dependency on hyper-tls
This removes one of the dependencies on native-tls, and thus on OpenSSL.
I will remove the other in a separate commit.
* Remove the `HttpClient` enum
It only had one variant.
* Apply suggestions from code review
Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com >
2019-11-08 13:29:03 +01:00
Gavin Wood
bd79b34bb3
Backport all v0.6 changes to master... ( #552 )
...
* Bump Substrate and versions (#531 )
* Bump versions
* Build fix.
* Enable governance (#536 )
* Enable governance
* Tweak a few parameters
* Bump substrate, versions. (#538 )
* Bump substrate, versions.
* Build fix
* Bump rpc deps (#537 )
* Update to latest sub
* Revert branch update
* Update.
* Update tests.
* Ignore warnings in tests.
* Revert substrate (#540 )
* Version bump
* Bump Substrate, versions. (#542 )
* Bump Substrate, versions.
Also revert the enabling of democracy
* Build fix
* Bump Substrate (#544 )
* Bump Substrate
* Fix
* A few tidyups
* Bump Substrate (#547 )
* Bump Substrate
* Another bump
* Fixed build for new block_import API
* Enable grandpa migration. (#549 )
* Enable grandpa migration.
* Bump runtime version
2019-11-08 11:49:04 +01:00
Arkadiy Paronyan
dfded93411
Increase parallel downloads to 5 ( #4045 )
...
* Increase parallel downloads to 5
* CLI param
2019-11-08 11:24:46 +01:00
B YI
2125b87cae
fix two typos ( #4048 )
2019-11-08 09:27:33 +01:00
Weiliang Li
63a1a5b7f8
clean node/cli/Cargo.toml ( #4046 )
...
* clean node/cli/Cargo.toml
* minor fix
* clean node/runtime/Cargo.toml
2019-11-08 08:54:45 +01:00
Jim Posen
d9c2ac5fd7
Correctly serialize code in chain spec as hex ( #4025 )
...
* Correctly serialize code in chain spec as hex.
Due to a bug, the runtime code was previously serialized as a JSON
array of numbers, pretty printed one byte per line.
* Remove panic in macro and whitelist attribute types for storage
genesis config lines.
* Use syn::Error to enforce whitelisted attributes on genesis config.
* Blacklist genesis extra config line attributes instead of whitelist.
2019-11-07 18:40:04 +01:00
Arkadiy Paronyan
cca9ab436c
Allow import withouth state verification ( #4031 )
...
* Allow import without state verification
* Explicit None
Co-Authored-By: Robert Habermeier <rphmeier@gmail.com >
2019-11-07 15:25:41 +01:00
Jim Posen
021f3a3f06
grandpa: Use storage proofs for Grandpa authorities ( #3985 )
2019-11-07 14:31:17 +01:00
Gavin Wood
bb6b3db57e
Refactor out MaxPossibleReward, fix staking arithmetic ( #4041 )
...
* Refactor out MaxPossibleReward, fix staking arithmetic
* Fix rounding error in test
2019-11-07 12:34:13 +01:00
Tomasz Drwięga
dcee91412c
Check polkadot compilation. ( #3980 )
...
* Check polkadot compilation.
* Fix git grep.
* Make sure to update properly. Use commit hash instead.
2019-11-07 12:05:22 +01:00
Nikolay Volf
745b68bfa9
Improve auto-docs a little. ( #4032 )
2019-11-07 12:04:56 +01:00
Arkadiy Paronyan
8de6279300
Ban incoming invalid transactions ( #4037 )
2019-11-07 12:03:23 +01:00
Ashley
3a7b1b9da5
Add ExistenceRequirement to Currency trait ( #4000 )
...
* Added a public transfer_some function and a private transfer_inner fn
* Move transfer_some to the end of the module impl to fix failing contracts test
* Change whitespace
* Remove needless change to transfer logic
* Fix error
* Update srml/balances/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Improve documentation and add test
* Update srml/balances/src/lib.rs
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Switch to changing Currency trait instead
2019-11-07 12:01:47 +01:00
Arkadiy Paronyan
e73436d818
Decrease peer reputation on bad transactions ( #4035 )
...
* Decrease reputation on bad transactions
* Don't punish on duplicate transactions
2019-11-07 12:00:14 +01:00
Yuanchao Sun
9515d34aee
Also replace paths in [build-dependencies] ( #4039 )
...
* Also replace paths in [build-dependencies]
* Update scripts/node-template-release/src/main.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Slightly reduce memory usage
* Update scripts/node-template-release/src/main.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
2019-11-07 11:48:30 +01:00
Gavin Wood
24d82d9717
Treasury rewards should pay the remainder of the 10% ( #4026 )
...
* Treasury rewards should pay the remainder of the 10%..
* Event for deposits coming into treasury
* Fix tests
* Remove OnDilution
2019-11-06 17:36:23 +01:00
Bastian Köcher
3022d60d92
Make TestExternalities implement Send ( #4030 )
...
* Make `TestExternalities` implement `Send` + `Sync`
* Fixes offchain
* Make it just `Send`
2019-11-06 14:43:55 +01:00
Bastian Köcher
b484c4fbc0
Update syn, proc-macro2 and quote to 1.x ( #4028 )
2019-11-06 14:00:49 +01:00
Pierre Krieger
cc09bfbd09
Apply breaking changes of new libp2p versions ( #3877 )
...
* Apply breaking changes of new libp2p versions
* Oops, forgot to update version
* Fix tests
* Fix imports with WASM
* Fix WASM for real
* Update core/network/src/debug_info.rs
Co-Authored-By: Roman Borschel <romanb@users.noreply.github.com >
* Fix compilation
2019-11-06 14:00:12 +01:00
Arkadiy Paronyan
1aaf31a34d
Less verbose console output ( #4029 )
2019-11-06 10:06:11 +01:00
Bastian Köcher
1def0811b8
Merge pull request #17 from paritytech/gui-candidate-justification
...
implementation of BlockAnnounceValidator
2019-11-06 09:49:58 +01:00
Bastian Köcher
601eb46ae4
Merge branch 'master' into gui-candidate-justification
2019-11-06 09:16:38 +01:00
Bastian Köcher
37818f3bc1
Merge pull request #22 from paritytech/bkchr-test-parachain
...
Add test parachain
2019-11-06 09:15:12 +01:00
Bastian Köcher
1c5e2132d8
Fixes tests
2019-11-06 09:00:29 +01:00
Nikolay Volf
f093eeba24
fix warnings ( #4024 )
2019-11-05 19:53:50 +01:00
Bastian Köcher
508c52a08a
Don't re-compile on every cargo run ( #4019 )
...
- Add new crate `substrate-build-script-utils` to unify the code of
`node`, `node-template` and `polkadot-node`.
- The `node-cli` build script needs to search upwards for the
`.git/HEAD` file to find it.
2019-11-05 19:36:10 +01:00
Gavin Wood
350e72dac5
Revert "Header-only sync for old forks ( #3942 )" ( #4022 )
...
This reverts commit 172359adad .
2019-11-05 16:05:36 +01:00
Arkadiy Paronyan
172359adad
Header-only sync for old forks ( #3942 )
...
* Header-only sync for old forks
* Simplified blocks-count
* Update core/consensus/common/src/block_import.rs
Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com >
2019-11-05 12:17:12 +01:00
Tomasz Drwięga
279391f9c1
Limit longevity of im-online heartbeats. ( #4011 )
...
* Limit longevity of im-online heartbeats.
* Unused import.
* Use parameter for session duration.
2019-11-05 12:16:46 +01:00
Arkadiy Paronyan
b92674d88a
Traffic statistics ( #4017 )
...
* Network stats
* Fixed tests
2019-11-05 12:15:59 +01:00
Xiliang Chen
88150e83d2
add comments for WonRenewal event ( #533 )
...
* add comments for WonRenewal event
* make event argument order consistent
2019-11-05 12:09:04 +01:00