Skip to content

Commit

Permalink
Fixes after subtree update
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Dec 6, 2023
1 parent 6bacb0b commit 4ea1306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bridges/bin/runtime-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ std = [
"bp-polkadot-core/std",
"bp-relayers/std",
"bp-runtime/std",
"bp-xcm-bridge-hub/std",
"bp-xcm-bridge-hub-router/std",
"bp-xcm-bridge-hub/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1457,9 +1457,9 @@ pub mod test_data {
);
// to compute proper cost of GRANDPA call, let's add some dummy bytes to header, so that the
// `submit_finality_proof` call size would be close to maximal expected (and refundable)
let expected_bytes_in_grandpa_call = BridgedRelayChain::AVERAGE_HEADER_SIZE_IN_JUSTIFICATION
let expected_bytes_in_grandpa_call = BridgedRelayChain::AVERAGE_HEADER_SIZE
.saturating_mul(BridgedRelayChain::REASONABLE_HEADERS_IN_JUSTIFICATON_ANCESTRY)
.saturating_add(BridgedRelayChain::MAX_HEADER_SIZE)
.saturating_add(BridgedRelayChain::MAX_MANDATORY_HEADER_SIZE)
as usize;
let extra_bytes_required =
expected_bytes_in_grandpa_call.saturating_sub(relay_chain_header.encoded_size());
Expand Down

0 comments on commit 4ea1306

Please sign in to comment.