André Silva
2b59d57c4c
client: use appropriate ExecutionContext for initial sync / regular import ( #6180 )
...
* client: use appropriate ExecutionContext for sync/import
* client: remove dead code
* client: ExecutionContext: distinguish between own and foreign imports
* client: fix cli parameter doc
* Revert "client: ExecutionContext: distinguish between own and foreign imports"
This reverts commit 0fac11520704c364a82432c5b927e987ba043cdb.
* primitives: add docs for ExecutionContext
* cli: execution strategy docs
* cli: use different execution context for importing block on validator
* cli: remove defaults from execution context flags
2020-06-12 14:22:21 +02:00
André Silva and Tomasz Drwięga
6b75f7c405
transaction-pool: expose blocking api for tx submission ( #6325 )
...
* transaction-pool: expose blocking api for tx submission
* service: separate ServiceBuilder::build for full and light
* service: add ServiceBuilder::build_common
* transaction-pool: extend docs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2020-06-11 12:16:31 +02:00
André Silva
8f5a52fe1a
Revert "Use Subscription Manager from jsonrpc-pubsub ( #6208 )" ( #6252 )
...
This reverts commit ea1eb4e57f .
2020-06-04 15:39:57 +01:00
André Silva
0ddd5cc278
babe: treat epoch_authorship RPC method as unsafe ( #6069 )
...
* service: pass DenyUnsafe to rpc extensions
* node: add DenyUnsafe to rpc full node dependencies
* client: fix whitespace in rpc policy file
* babe: treat epochAuthorship rpc method as unsafe
* babe: add test for unsafe rpc method
* babe: rename babe rpc handler
* service: traitify rpc extension builder
* service: make the rpc extensions builder api non-breaking
* service: revert changes from light node rpc extensions builder
* node: remove unnecessary type in service creation
* service: cleanup with_rpc_extensions implementation
* service: add missing docs to RpcExtensionBuilder
2020-05-21 13:58:04 +02:00
André Silva
9a4e23d594
service: fix RPC unsafe exposed address detection ( #6070 )
2020-05-19 02:16:48 +01:00
André Silva
09a16a30a6
grandpa: minor cleanup for gossip round start instant ( #5976 )
...
* grandpa: move gossip round start instant to LocalView
* grandpa: round duration is 2 gossip periods
2020-05-18 12:53:33 +01:00
André Silva
a975796d76
ci: fix merge on polkadot companion job ( #6020 )
2020-05-14 01:01:57 +02:00
André Silva
c91e681db2
babe: minor rpc nits ( #5974 )
...
* babe: fix formatting
* babe: re-use same epoch data in epoch_authorship rpc method
2020-05-12 15:18:15 +02:00
André Silva
ab208837fa
grandpa: missing equivocation reporting nits ( #5953 )
...
* primitives: move reporting key type to common key types
* session: remove useless methods on MembershipProof
* grandpa: remove std special-casing when checking signatures
* grandpa: add some more docs
* grandpa: use proper error types rather than strings
2020-05-12 12:17:33 +01:00
André Silva
871761694e
grandpa: update to finality-grandpa v0.12.3 ( #5972 )
2020-05-12 12:16:46 +01:00
André Silva
fbd2ac8f3b
grandpa: report equivocations ( #3868 )
...
* session: runtime api for generating session membership proofs
* grandpa: add runtime api for creating equivocation report txs
* grandpa: submit signed equivocation report transactions
* grandpa: use proper equivocation report type
* grandpa: report equivocations
* grandpa: validate equivocation proof
* grandpa: update to finality-grandpa 0.9.1
* grandpa: fix encoding of session membership proof
* grandpa: initialize set id session mapping for genesis session
* grandpa: fix bug in set_id session validation
* fix compilation
* cleanup from merge conflicts
* cleanup crate tomls
* grandpa: refactor equivocation handling to separate trait
* node-template: fix compilation
* fix test compilation
* bump finality-grandpa to v0.10.2
* rpc: fix runtime version test
* CHERRY-PICK #4200 : Add documentation to SubmitSignedTransaction and actually make it work
Squashed commit of the following:
commit 4f2cb0b1c588a06f2f3b478bb4b28b5cb29d54b9
Author: Tomasz Drwięga <tomasz@parity.io >
Date: Tue Dec 3 16:29:33 2019 +0100
Split the method to avoid confusing type error message.
commit c5bf24eeaaf902add89ed1b046b22c4a4aaeb2cd
Author: Tomasz Drwięga <tomasz@parity.io >
Date: Tue Dec 3 16:19:55 2019 +0100
Make accounts optional, fix logic.
commit 97db1ef556e023cf6847e5ffdb036c0e3ea6fb0a
Author: Tomasz Drwięga <tomasz@parity.io >
Date: Tue Dec 3 10:06:20 2019 +0100
Remove warning.
commit 535f5c116d1a2e826eaf90c3f7e6798e443d61d8
Merge: 516257217 0f1a5f651
Author: Tomasz Drwięga <tomasz@parity.io >
Date: Tue Dec 3 07:08:05 2019 +0100
Merge branch 'master' into td-signed-transactions
commit 516257217bac89fcebd083712f4ea68b7b23b55a
Merge: ac98248c6 2e68c80c2
Author: Tomasz Drwięga <tomasz@parity.io >
Date: Mon Dec 2 13:57:25 2019 +0100
Merge branch 'master' into td-signed-transactions
commit ac98248c6c56cff381130645a82a13d29933cf83
Author: Tomasz Drwięga <tomasz@parity.io >
Date: Mon Nov 25 17:34:52 2019 +0100
Forgotten import.
commit 67a3c19031506c28e31c6bc4a90fff62d467dd58
Author: Tomasz Drwięga <tomasz@parity.io >
Date: Mon Nov 25 17:32:10 2019 +0100
Fix naming and bounds.
commit 93e768ea9df97a4629fca1f9bc4b108fdb33f876
Author: Tomasz Drwięga <tomasz@parity.io >
Date: Mon Nov 25 17:01:05 2019 +0100
Add documentation to signed transactions and actually make them work.
* grandpa: skip block initialization on report submission method
* primitives: allow transaction pool access by default for offchain calls
* grandpa: unused parameters
* grandpa: remove unused method
* grandpa: enable equivocation reporting
* grandpa: add workaround for parameter encoding
* grandpa: fix localized_payload calls in tests
* fix submit_report_equivocation_extrinsic in runtimes
* node: fix submit transaction test compilation
* node: bump spec_version
* rpc: fix api version test
* grandpa: allow custom equivocation offence type
* grandpa: add test for authorities::next_change_height
* grandpa: cleanup report_equivocation function
* node: move reporting app crypto to node-primitives
* grandpa: move equivocation traits to own module
* grandpa: rename app-crypto crate import
* grandpa: export equivocation types
* node: bump spec_version
* grandpa: rename EquivocationReport to EquivocationProof
* grandpa: add missing docs to primitives
* grandpa: add missing docs to equivocation
* node: fix compilation
* grandpa: add missing docs to pallet
* node: bump spec_version
* fix whitespace
* grandpa: return error on offence reporting
* grandpa: expose session and validator count in proofs through traits
* grandpa: use strong key in module KeyOwnerProofSystem
* grandpa: move key ownership proof to grandpa runtime api
* grandpa: remove unnecessary cloning when checking equivocation proof
* grandpa: make report_equivocation a method in Environment
* support: implement KeyOwnerProofSystem for ()
* grandpa: move KeyOwnerProofSystem to module trait
* test-utils: fix runtime compilation
* grandpa: fix test compilation
* grandpa: fix test compilation after merge
* grandpa: simplify transaction submission types
* grandpa: validate equivocation report in signed extension
* client: fix test
* node: use ValidateEquivocationReport signed extension
* grandpa: expose key ownership proof under opaque type
* grandpa: better docs on key ownership proofs
* grandpa: add note about signed extension
* grandpa: add ValidateEquivocationReport::new
* grandpa: remove skip_initialize_block from runtime api
* grandpa: use new offchain transaction submission API
* grandpa: take set_id in generate_key_ownership_proof
* grandpa: update to finality-grandpa v0.12.2
* grandpa: cleanup usages of AuthoritySet::current
* grandpa: fix test
* grandpa: add mocking utilities for equivocation reporting
* grandpa: add test for equivocation reporting
* grandpa: move SetIdSession initialization
* grandpa: add more tests
* node: enable historical session manager
* node: bump spec_version
* node: use strong key types in KeyOwnerProofSystem definitions
* grandpa: export GrandpaEquivocationOffence type
2020-05-06 17:25:51 +01:00
André Silva
d2967ba4b6
grandpa: update to finality-grandpa v0.12.0 ( #5853 )
...
* grandpa: update to v0.12.0
* grandpa: fix tests
* grandpa: better validation of authority set invariants
* grandpa: avoid duplicating invalid authority list check
* grandpa: add missing doc
* grandpa: better validation of expect proofs
* grandpa: fix test compilation
* grandpa: fix tests
* grandpa: add test for AuthoritySet invariants
* grandpa: bump finality-grandpa to v0.12.0
2020-04-30 20:03:30 +00:00
André Silva
43e8268ae1
docs: update codeowners ( #5856 )
2020-04-30 20:33:52 +02:00
André Silva
29c127a082
babe: fix overflow in check_equivocation ( #5818 )
2020-04-29 00:17:16 +02:00
André Silva
5662501258
cli: fix unused unsafe-pruning flag ( #5803 )
2020-04-27 22:01:35 +02:00
André Silva
3793fbf9cc
babe: remove error fallback from threshold calculation ( #5764 )
...
* babe: remove error fallbacks from threshold calculation
* babe: fix indent
* babe: fix domain
* babe: fix compilation
* babe: improve expect
* babe: add one more note about p's limit
2020-04-24 17:56:41 -04:00
André Silva
96b7cec1ce
slots: fix slot lenience methods ( #5742 )
...
* slots: extract slot lenience from babe and aura
* slots: add tests for slot lenience
* slots: fix comment in test
2020-04-23 09:42:53 +02:00
André Silva
20b11b1770
client: avoid spamming telemetry on initial sync ( #5651 )
2020-04-15 21:49:21 +02:00
André Silva
1a9c0fee30
babe, grandpa: restrict info logging during initial sync ( #5564 )
...
* babe: restrict info logging during initial sync
* grandpa: restrict info logging during initial sync
* grandpa: fix test compilation
* grandpa: remove afg_log macro mod
2020-04-07 22:11:22 +02:00
André Silva
f0375a858f
support: add lateness trait ( #5519 )
...
* support: add lateness trait
* babe: implement the lateness trait
* babe: add docs about lateness entry lifetime
* babe: don't use option for lateness storage entry
2020-04-04 09:59:15 +02:00
André Silva
2e720f93a2
cli: fix milliseconds formatting on logs ( #5507 )
2020-04-02 20:16:45 +02:00
André Silva
c4aa597516
babe: restore epoch changes migration code ( #5487 )
...
This was removed in https://github.com/paritytech/substrate/pull/5291
but is still too early to do it as it requires nodes still on Polkadot
v0.7.26 to resync from scratch.
2020-04-01 19:43:34 +02:00