Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f86a29c

Browse files
committed
Merge remote-tracking branch 'origin/master' into approval-voting-overlay-db
2 parents ef68ae1 + 3239775 commit f86a29c

File tree

179 files changed

+5768
-2448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+5768
-2448
lines changed

Cargo.lock

Lines changed: 455 additions & 422 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ path = "src/main.rs"
66
name = "polkadot"
77
description = "Implementation of a https://polkadot.network node in Rust based on the Substrate framework."
88
license = "GPL-3.0-only"
9-
version = "0.9.7"
9+
version = "0.9.8"
1010
authors = ["Parity Technologies <[email protected]>"]
1111
edition = "2018"
1212
readme = "README.md"
@@ -79,6 +79,7 @@ members = [
7979
"parachain/test-parachains",
8080
"parachain/test-parachains/adder",
8181
"parachain/test-parachains/adder/collator",
82+
"utils/staking-miner",
8283
]
8384

8485
# We want to be able to build the bridge relayer without pulling it (and all of its

bridges/bin/millau/runtime/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,9 @@ impl_runtime_apis! {
495495
fn validate_transaction(
496496
source: TransactionSource,
497497
tx: <Block as BlockT>::Extrinsic,
498+
block_hash: <Block as BlockT>::Hash,
498499
) -> TransactionValidity {
499-
Executive::validate_transaction(source, tx)
500+
Executive::validate_transaction(source, tx, block_hash)
500501
}
501502
}
502503

bridges/bin/rialto/runtime/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,9 @@ impl_runtime_apis! {
668668
fn validate_transaction(
669669
source: TransactionSource,
670670
tx: <Block as BlockT>::Extrinsic,
671+
block_hash: <Block as BlockT>::Hash,
671672
) -> TransactionValidity {
672-
Executive::validate_transaction(source, tx)
673+
Executive::validate_transaction(source, tx, block_hash)
673674
}
674675
}
675676

bridges/primitives/chain-millau/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bp-messages = { path = "../messages", default-features = false }
1414
bp-runtime = { path = "../runtime", default-features = false }
1515
fixed-hash = { version = "0.7.0", default-features = false }
1616
hash256-std-hasher = { version = "0.15.2", default-features = false }
17-
impl-codec = { version = "0.5.0", default-features = false }
17+
impl-codec = { version = "0.5.1", default-features = false }
1818
impl-serde = { version = "0.3.1", optional = true }
1919
parity-util-mem = { version = "0.9.0", default-features = false, features = ["primitive-types"] }
2020
serde = { version = "1.0.101", optional = true, features = ["derive"] }
@@ -23,7 +23,6 @@ serde = { version = "1.0.101", optional = true, features = ["derive"] }
2323

2424
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master" , default-features = false }
2525
frame-system = { git = "https://github.com/paritytech/substrate", branch = "master" , default-features = false }
26-
max-encoded-len = { git = "https://github.com/paritytech/substrate", branch = "master" , default-features = false, features = ["derive"] }
2726
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" , default-features = false }
2827
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" , default-features = false }
2928
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" , default-features = false }
@@ -42,7 +41,6 @@ std = [
4241
"hash256-std-hasher/std",
4342
"impl-codec/std",
4443
"impl-serde",
45-
"max-encoded-len/std",
4644
"parity-util-mem/std",
4745
"serde",
4846
"sp-api/std",

bridges/primitives/chain-millau/src/millau_hash.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
1616

17-
use frame_support::traits::MaxEncodedLen;
1817
use parity_util_mem::MallocSizeOf;
1918
use sp_runtime::traits::CheckEqual;
2019

@@ -23,7 +22,7 @@ use sp_runtime::traits::CheckEqual;
2322

2423
fixed_hash::construct_fixed_hash! {
2524
/// Hash type used in Millau chain.
26-
#[derive(MallocSizeOf, MaxEncodedLen)]
25+
#[derive(MallocSizeOf)]
2726
pub struct MillauHash(64);
2827
}
2928

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-cli"
3-
version = "0.9.7"
3+
version = "0.9.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Polkadot Relay-chain Client Node"
66
edition = "2018"

cli/browser-demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
// Build our client.
2323
log('Starting client');
24-
let client = await start_client(chain_spec_text, 'info');
24+
let client = start_client(chain_spec_text, 'info');
2525
log('Client started');
2626

2727
client.rpcSubscribe('{"method":"chain_subscribeNewHead","params":[],"id":1,"jsonrpc":"2.0"}',

cli/src/browser.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ use wasm_bindgen::prelude::*;
2020

2121
/// Starts the client.
2222
#[wasm_bindgen]
23-
pub async fn start_client(chain_spec: String, log_level: String) -> Result<Client, JsValue> {
24-
start_inner(chain_spec, log_level).await.map_err(|err| JsValue::from_str(&err.to_string()))
23+
pub fn start_client(chain_spec: String, log_level: String) -> Result<Client, JsValue> {
24+
start_inner(chain_spec, log_level).map_err(|err| JsValue::from_str(&err.to_string()))
2525
}
2626

27-
async fn start_inner(chain_spec: String, log_directives: String) -> Result<Client, Box<dyn std::error::Error>> {
27+
fn start_inner(chain_spec: String, log_directives: String) -> Result<Client, Box<dyn std::error::Error>> {
2828
set_console_error_panic_hook();
2929
init_logging(&log_directives)?;
3030

3131
let chain_spec =
3232
service::PolkadotChainSpec::from_json_bytes(chain_spec.as_bytes().to_vec()).map_err(|e| format!("{:?}", e))?;
33-
let config = browser_configuration(chain_spec).await?;
33+
let config = browser_configuration(chain_spec)?;
3434

3535
info!("Polkadot browser node");
3636
info!(" version {}", config.impl_version);

core-primitives/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-core-primitives"
3-
version = "0.9.7"
3+
version = "0.9.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66

@@ -9,7 +9,7 @@ sp-core = { git = "https://github.com/paritytech/substrate", branch = "master",
99
sp-std = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
1010
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
1111
parity-scale-codec = { version = "2.0.0", default-features = false, features = [ "derive" ] }
12-
parity-util-mem = { version = "0.9.0", default-features = false, optional = true }
12+
parity-util-mem = { version = "0.10.0", default-features = false, optional = true }
1313

1414
[features]
1515
default = [ "std" ]

0 commit comments

Comments
 (0)