prepping for releasing rc6 (#6922)

* Bump version

* update test-utils crates to be ready for publishing

* adding changelog

* Adding automaticly generated READMEs

* fixing versions

* another version mishap
This commit is contained in:
Benjamin Kampmann
2020-08-20 17:04:42 +02:00
committed by GitHub
parent 6f59c95c89
commit 2416aa7999
335 changed files with 5490 additions and 1879 deletions
+15 -15
View File
@@ -1,6 +1,6 @@
[package]
name = "sc-basic-authorship"
version = "0.8.0-rc5"
version = "0.8.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
@@ -16,21 +16,21 @@ codec = { package = "parity-scale-codec", version = "1.3.4" }
futures = "0.3.4"
futures-timer = "3.0.1"
log = "0.4.8"
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus", version = "0.8.0-rc5"}
sp-api = { version = "2.0.0-rc5", path = "../../primitives/api" }
sp-runtime = { version = "2.0.0-rc5", path = "../../primitives/runtime" }
sp-core = { version = "2.0.0-rc5", path = "../../primitives/core" }
sp-blockchain = { version = "2.0.0-rc5", path = "../../primitives/blockchain" }
sc-client-api = { version = "2.0.0-rc5", path = "../api" }
sp-consensus = { version = "0.8.0-rc5", path = "../../primitives/consensus/common" }
sp-inherents = { version = "2.0.0-rc5", path = "../../primitives/inherents" }
sc-telemetry = { version = "2.0.0-rc5", path = "../telemetry" }
sp-transaction-pool = { version = "2.0.0-rc5", path = "../../primitives/transaction-pool" }
sc-block-builder = { version = "0.8.0-rc5", path = "../block-builder" }
sc-proposer-metrics = { version = "0.8.0-rc5", path = "../proposer-metrics" }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus", version = "0.8.0-rc6"}
sp-api = { version = "2.0.0-rc6", path = "../../primitives/api" }
sp-runtime = { version = "2.0.0-rc6", path = "../../primitives/runtime" }
sp-core = { version = "2.0.0-rc6", path = "../../primitives/core" }
sp-blockchain = { version = "2.0.0-rc6", path = "../../primitives/blockchain" }
sc-client-api = { version = "2.0.0-rc6", path = "../api" }
sp-consensus = { version = "0.8.0-rc6", path = "../../primitives/consensus/common" }
sp-inherents = { version = "2.0.0-rc6", path = "../../primitives/inherents" }
sc-telemetry = { version = "2.0.0-rc6", path = "../telemetry" }
sp-transaction-pool = { version = "2.0.0-rc6", path = "../../primitives/transaction-pool" }
sc-block-builder = { version = "0.8.0-rc6", path = "../block-builder" }
sc-proposer-metrics = { version = "0.8.0-rc6", path = "../proposer-metrics" }
tokio-executor = { version = "0.2.0-alpha.6", features = ["blocking"] }
[dev-dependencies]
sc-transaction-pool = { version = "2.0.0-rc5", path = "../../client/transaction-pool" }
substrate-test-runtime-client = { version = "2.0.0-rc5", path = "../../test-utils/runtime/client" }
sc-transaction-pool = { version = "2.0.0-rc6", path = "../../client/transaction-pool" }
substrate-test-runtime-client = { version = "2.0.0-rc6", path = "../../test-utils/runtime/client" }
parking_lot = "0.10.0"
@@ -0,0 +1,32 @@
Basic implementation of block-authoring logic.
# Example
```rust
// The first step is to create a `ProposerFactory`.
let mut proposer_factory = ProposerFactory::new(client.clone(), txpool.clone(), None);
// From this factory, we create a `Proposer`.
let proposer = proposer_factory.init(
&client.header(&BlockId::number(0)).unwrap().unwrap(),
);
// The proposer is created asynchronously.
let proposer = futures::executor::block_on(proposer).unwrap();
// This `Proposer` allows us to create a block proposition.
// The proposer will grab transactions from the transaction pool, and put them into the block.
let future = proposer.propose(
Default::default(),
Default::default(),
Duration::from_secs(2),
RecordProof::Yes,
);
// We wait until the proposition is performed.
let block = futures::executor::block_on(future).unwrap();
println!("Generated block: {:?}", block.block);
```
License: GPL-3.0-or-later WITH Classpath-exception-2.0