Benjamin Kampmann
8721d98dd6
break sp-api dependency cycle ( #4352 )
...
* move benches into tests, ignore non-passing doctests
* Rename sr-api folder
* Move test-primitives to primitives, use that for sp-api doctests
2019-12-10 20:18:01 +01:00
Marek Kotewicz
f6f0f1cc16
remove unnecessary block-builder dependency ( #4351 )
2019-12-10 17:53:23 +01:00
Benjamin Kampmann
7120c6e0a9
remove unnecessary client-db dependency ( #4348 )
2019-12-10 17:50:15 +01:00
Weiliang Li
4f2cdb20c1
Rename: primitives/sr-io -> primitives/sp-io ( #4328 )
...
* primitives/sr-io -> primitives/io
* fix
* rename
* runtime-io -> sp-io
* git mv
* fix ci
* remove package name
* fix
* fix
* try minimizing diff
* try minimizing diff again
* try minimizing diff again
2019-12-10 16:08:35 +01:00
Tomasz Drwięga
1f84d6d41d
Fix warnings when compiling runtime. ( #4332 )
...
* Remove warnings when compiling runtime.
* Remove dispatch::Result imports.
* Add missing imports.
* Fix missing vecs. #4333
* Fix oom function.
* Remove superfluous import.
* More warnings.
2019-12-10 14:21:34 +01:00
Weiliang Li
6da9f59d72
Rename: primitives/sr-std -> primitives/sp-std ( #4327 )
...
* primitives/sr-std -> primitives/std
* fix
* fix conflict
* rstd -> sp-std
* git mv
* fix review
* fix merge
2019-12-10 08:26:27 +01:00
Tomasz Drwięga
638e32fa8f
Remove depenendcy on sc-consensus-slots ( #4321 )
2019-12-09 23:37:33 +01:00
thiolliere
e5b6935c2a
Introduce prefixed storage with enumeration ( #4185 )
...
* Introduce storage_next allowing iteration. (without childtries)
* Implement prefixed storage
* impl cache in client_storage_cache (needs test)
* switch overlay change to btreemap
* Revert "impl cache in client_storage_cache"
This reverts commit c91a4848916eba87184b3dc4722cea81aec9339d.
the storage cache cannot be used this way
* Revert "Implement prefixed storage"
This reverts commit 4931088126a427082d7310ed7e83b8eea966bc20.
* Impl StoragePrefixedMap for all map storages
* remove comment
* Move all overlays to BTreeMap
* btreemap iteration improvment
* impl for child tries
* impl tests for childs
* fix
* remove cache comment
* Fix grumble
2019-12-09 20:55:11 +01:00
Pierre Krieger
fb1eb9d9e4
Fix panic in telemetry ( #4336 )
2019-12-09 20:40:52 +01:00
Benjamin Kampmann
8e4b40278c
Remove slog-async Github ( #4329 )
...
* add local copy of async-record
* Minor clean ups to latest rust and necessity
* styling fixes
* nitpicky fixes
2019-12-09 15:47:29 +01:00
Marcio Diaz
d82e4b7761
Use header metadata in state full and refactor. ( #3757 )
...
* Use header metadata in state full and refactor.
* better log
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Apply review suggestions.
2019-12-09 14:47:46 +01:00
Weiliang Li
04fcc71809
Rename folder: primitives/sr-primitives -> primitives/runtime ( #4280 )
...
* primitives/sr-primitives -> primitives/runtime
* update
2019-12-09 08:49:32 +01:00
Ashley
3d7ad6fb28
Disable record_metrics_slice in grafana macro on wasm ( #4312 )
...
* Disable record_metrics_slice in grafana macro on wasm
* Update client/grafana-data-source/src/lib.rs
* Revert "Update client/grafana-data-source/src/lib.rs"
This reverts commit 888009a8e0b7051bd4bfbbfdb0448bcf2e2aae93.
2019-12-07 15:29:50 +01:00
Tomasz Drwięga
3805393a13
Merge txpool-runtime-api with txpool-api ( #4320 )
...
* Remove transaction-pool-runtime-api
* Merge runtime-api with transaction-pool.
2019-12-06 17:24:17 +01:00
Max Inden
70db5da6c4
client/authority-discovery: Warn when specifying too many sentry nodes ( #4314 )
2019-12-06 13:42:28 +01:00
Max Inden
af3fc1d95a
client/authority-discovery: Limit the amount of sentries per authority ( #4302 )
...
When receiving more addresses for a given authority than a defined
threshold (5), the authority discovery drops the remaining in order to
prevent a single authority to fill all priority group slots.
2019-12-05 16:05:42 +01:00
Pierre Krieger
2231c06294
Move legacy_proto to protocol ( #4296 )
...
* Move legacy_proto to protocol
* Edition 2018ize legacy_proto
* Some basic documentation
2019-12-05 14:02:48 +01:00
Max Inden
e126ca9b2c
client/authority-discovery: Increase margins for interval test ( #4297 )
...
`interval_at_is_queuing_ticks` test shows to be flaky. This commit
increases the time margins while also reducing the amount of necessary
time ticks.
2019-12-05 14:01:59 +01:00
Tomasz Drwięga
7714bfca8e
Tone down warnings when resubmitting to the pool. ( #4294 )
...
* Tone down warnings.
* Fix the fix.
* Add some debug info.
* More logs.
* Update logging.
2019-12-05 13:02:21 +01:00
Yuanchao Sun
e2bf02f138
Minor fix toml files ( #4291 )
2019-12-05 13:00:45 +01:00
Drew Stone
03a3993541
Add linear back-off for aura slot workers ( #4293 )
...
* Add linear back-off for aura slot workers
* logging
* Use slot from header
2019-12-05 10:07:58 +01:00
Tomasz Drwięga
1628ba3388
Revalidate some transactions on every block import. ( #4292 )
...
* Revalidate some transactions on every block import.
* Fix endless loop in revalidate_ready.
* Clean up logging a bit.
* More clean ups.
* Print status after resubmitting.
* Remove env_logger.
* Remove redundant log.
2019-12-04 19:16:00 +01:00
Ashley
925b23a3cd
Use timestamp deltas in grafana-data-store ( #4199 )
...
* Optimize grafana storage slightly
* Test on grafana test binary
* Cast to f32
* Silence record_metrics warning
* Add source for error
* More changes
* Fix record_metrics_slice
* Test Database
* Docs
* Update client/grafana-data-source/src/lib.rs
Co-Authored-By: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Fix macro
* Update server.rs
2019-12-04 18:49:12 +01:00
Ashley
a58e8a6e45
Update exit-future and make sc-cli compile on wasm ( #4289 )
...
* updated exit-future (github repo)
* Switch to broadcast crate
* Migrate client/cli
* Switch exit-future to modernize branch
* Small changes
* Switch to cargo version and fix fg tests
* Revert "Small changes"
This reverts commit a488106805d220cb4aee9e46a71481424c6d87d5.
2019-12-04 18:35:33 +01:00
Bryant Eisenbach
c071276187
fix: Typo granpda -> grandpa ( #4286 )
2019-12-04 00:05:05 +01:00
Max Inden
2de6f82b8a
client: Introduce --sentry-nodes flag ( #4285 )
...
* client/authority-discovery: Add smoke tests for intervall_at
* client/authority-discovery: Fix interval_at to fire on start
* .maintain/sentry-node: Update docker compose file
* client: Introduce --sentry-nodes flag
Enable operators to specify the public addresses of sentry nodes infront
of a validator node so that the validator node can announce the sentry
node addresses instead of its own public addresses on the DHT via the
authority discovery module.
* client/authority-discovery: Break lines at 100 characters
Limit line length to 100 instead of 120 characters.
2019-12-03 18:03:08 +01:00
Arkadiy Paronyan
5ec0923285
Reputation changes requires reason ( #4277 )
2019-12-03 11:33:33 +01:00
Andrew Jones
4c2ba5b71f
Fix sp-session typo ( #4273 )
...
* Fix sp-session typo
* Remove erroneous whitespaces
* Don't mess with the file, editor
2019-12-02 20:24:25 +01:00
Bastian Köcher
2e68c80c20
Improve error message on can_author_with failure ( #4262 )
2019-12-02 13:07:17 +01:00
Benjamin Kampmann
810ac845b5
Fix sc-tracing-* -> sc-transaction- ( #4263 )
...
* fixing faulty tracing-rename
* missed one
2019-12-02 12:19:53 +01:00
Benjamin Kampmann
927e13c13a
The crate rename ( #4223 )
...
* Adding script for rename, could be applicable for nodes on top of it, too
* add stderr and gitlab ci features
* apply script
* fix now minor details in expected stderr
* Update the Cargo.lock
* fix name: sc-transaction -> sc-tracing
* fix rename in script, too
2019-12-02 11:23:53 +01:00
Marcio Diaz
bd4f1fc54b
Use result. ( #4259 )
2019-12-01 08:59:56 -05:00
Marcio Diaz
6ba1d5d1fb
Fix functions doc. ( #4260 )
2019-12-01 12:08:24 +01:00
Tomasz Drwięga
a401acc690
Add some logs, fix reorg import. ( #4250 )
2019-12-01 10:14:01 +01:00
Gavin Wood
fd1cec850e
Economic fixes for democracy module ( #4256 )
...
* Fix up `end_block` mess; add free preimage noting for imminents.
* Fixes
* Bump runtime
* Update frame/democracy/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Handle grumble
* Update frame/democracy/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
2019-12-01 10:13:09 +01:00
Bastian Köcher
5ccf474d8d
Check filename length is valid in keystore ( #4255 )
2019-11-30 23:20:23 +01:00
Marcio Diaz
c791615387
Fix db path on normal run. ( #4254 )
2019-11-30 19:37:03 +01:00
Bastian Köcher
a924230ccb
Fix filling the db path in the CLI ( #4253 )
2019-11-30 12:25:37 +01:00
thiolliere
b87b008775
remove unused file ( #4251 )
2019-11-29 20:25:30 +01:00
Marcio Diaz
1ceebb5c3a
Grandpa: save all completed prior rounds ( #4203 )
...
* Save concluded rounds.
* Doc nit
* Fix cargo
2019-11-29 18:54:07 +01:00
mattrutherford
6639e9b254
Tracing - Implement feature to record values with span creation ( #4242 )
...
* implement feature to record arbitrary values with span creation
* align dependency versions
* Fix formatting, refactor
* Change `Level` in decl_module from `INFO` to `DEBUG`, because we may
want to use `INFO` in spans added manually in individual pallets, in future.
2019-11-29 15:44:42 +00:00
Bastian Köcher
3da736fdf6
Update kvdb-rocksdb again ( #4236 )
...
* Update kvdb-rocksdb again
* Switch to released crates
* Remove last git references
2019-11-29 11:32:44 +01:00
Bastian Köcher
accc678640
Check in block authoring that we can author with current authoring version ( #4201 )
...
* Check in block authoring that we can author with current authoring version
* Update client/consensus/pow/src/lib.rs
Co-Authored-By: André Silva <andre.beat@gmail.com >
* Fix compilation
2019-11-29 11:01:11 +01:00
Arkadiy Paronyan
0b52f194f5
Fixed node binary ( #4244 )
...
* Fixed node binary
* Remove extra params
2019-11-29 09:09:12 +01:00
Arkadiy Paronyan
504e2f8bd5
Check block CLI command ( #4240 )
...
* Check block operation
* Update client/cli/src/lib.rs
* Update client/cli/src/params.rs
2019-11-28 11:24:28 +00:00
Tomasz Drwięga
f78b83e363
Handle Grafana server bind errors gracefuly. ( #4241 )
...
* Fix error handling for grafana sever start.
* Update client/grafana-data-source/src/server.rs
Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com >
2019-11-28 11:16:54 +00:00
Qinxuan Chen
4a21f9bbfd
Prune some duplicate dependencies ( #4219 )
...
* Prune some duplicate dependencies
* Remove ed25519-dalek 0.9.1
* Remove hex 0.3.2
* Remove parity-wasm 0.40.3
* Remove pwasm-utils 0.11.0
* Remove wasmi-validation 0.2.0
* Remove quickcheck 0.8.5
* Remove tempdir (Replace tempdir with tempfile)
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove useless tempdir_with_prefix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove derive_more 0.15
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2019-11-28 09:55:30 +01:00
Svyatoslav Nikolsky
a782021ee8
Recover transaction pool on light client ( #3833 )
...
* recover tx pool on light client
* revert local tests fix
* removed import renamings
* futures03::Future -> std::future::Future
* Update core/transaction-pool/graph/src/error.rs
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* replace remove_from_ready with remove_invalid
* avoid excess hashing
* debug -> warn
* TransactionPool + BasicTransactionPool
* pause future tx reject when resubmitting
* bump impl_version to make CI happy
* and revert back local test fixes
* alter doc to restart CI
* Transaction::clone() -> Transaction::duplicate()
* transactions -> updated_tranasctions
* remove explicit consensus-common ref
* ::std:: -> std::
* manual set/unset flag -> calling clusore with given flag value
* removed comments
* removed force argument
* BestIterator -> Box<Iterator>
* separate crate for TxPool + Maintainer trait
* long line fix
* pos-merge fix
* fix benches compilation
* Rename txpoolapi to txpool_api
* Clean up.
* Finalize merge.
* post-merge fix
* Move transaction pool api to primitives directly.
* Consistent naming for txpool-runtime-api
* Warn about missing docs.
* Move abstraction for offchain calls to tx-pool-api.
* Merge RPC instantiation.
* Update cargo.lock
* Post merge fixes.
* Avoid depending on client.
* Fix build
2019-11-28 00:00:54 +00:00
Bastian Köcher
3e26fceda4
The storage runtime interface should not enforce a hash type ( #4231 )
...
* The storage runtime interface should not enforce a hash type
Currently the runtime interface enforces `H256` as hash type, but in the
future people could use whatever they want as hash type. The hash type
always needs to match between the runtime and the node, but that is
already required.
* Update primitives/externalities/src/lib.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
2019-11-28 00:00:28 +00:00
Robert Habermeier
9973432342
back-off block proposal ( #4235 )
2019-11-27 21:53:34 +00:00