Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridge: make some headers submissions free #4102

Merged
merged 60 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
bc26ff5
move bridge extensions to a separate folder
svyatonik Apr 12, 2024
812d474
added FreeHeadersInterval to pallet-bridge-grandpa configuration
svyatonik Mar 12, 2024
b45fde5
added is_free_execution_expected parameter to the submit_finality_pro…
svyatonik Mar 12, 2024
1161805
move grandpa call result check from RefundTransactionExtensionAdapter…
svyatonik Mar 13, 2024
148d9b3
added RefundBridgedMessages to refund and bump priority of standalone…
svyatonik Mar 13, 2024
3cfd666
check_obsolete_submit_finality_proof may now boost transaction priori…
svyatonik Mar 13, 2024
38c558b
added CheckAndBoostBridgeGrandpaTransactions that checks whether brid…
svyatonik Mar 13, 2024
ad8edb5
relayer may be slashed to explicit account
svyatonik Mar 13, 2024
791ea6a
slash registered relayer if it has submitted failed GRANDPA transaction
svyatonik Mar 13, 2024
b90615a
allow accepting some parachain headers for free
svyatonik Mar 13, 2024
df1928f
added FreeParachainUpdateForFreeRelayHeader
svyatonik Mar 13, 2024
6d852d4
fix benchmarks compilation
svyatonik Mar 15, 2024
3209053
added WeightInfoExt for pallet-bridge-grandpa to include extra wight …
svyatonik Mar 15, 2024
3f95fb0
also refund for submitting initial parachain head
svyatonik Mar 20, 2024
84c9757
make FreeHeadersRemaining an Option => we know that when we are outsi…
svyatonik Mar 20, 2024
a3831e2
add more traces to pallets
svyatonik Mar 20, 2024
1a6baf9
check for reorgs in signed ext for parachains module
svyatonik Mar 20, 2024
3922d6a
fix benchmarks compilation
svyatonik Mar 20, 2024
666aad2
free interval instead of fixed free headers
svyatonik Mar 22, 2024
efeba93
fixed trace
svyatonik Mar 22, 2024
85a5a40
CannotAcceptMoreFreeHeaders -> FreeHeadersLimitExceded
svyatonik Mar 22, 2024
0c87d48
additional_call_result_check -> check_call_result_ex
svyatonik Mar 22, 2024
c3f0bc5
is_granda_call_succeeded -> is_grandpa_call_successful
svyatonik Mar 22, 2024
8e710d2
move tx priority boost from check_obsolete_submit_finality_proof to e…
svyatonik Mar 22, 2024
3ca9d7e
lost changes
svyatonik Mar 22, 2024
7f1375b
dec counter when importing new para header
svyatonik Mar 22, 2024
5772858
cherry pick https://github.com/paritytech/parity-bridges-common/pull/…
svyatonik Apr 12, 2024
61c7ff5
added grandpa_and_parachain_pallets_share_free_headers_counter test
svyatonik Mar 25, 2024
e0817e9
with free intervals (instead of fixed free headers) we need to check …
svyatonik Mar 25, 2024
380fe97
fix test name
svyatonik Mar 25, 2024
779bf9d
added CheckAndBoostBridgeParachainsTransactions to boost parachain tr…
svyatonik Mar 25, 2024
19fb766
check parachain id in CheckAndBoostBridgeParachainsTransactions
svyatonik Mar 25, 2024
7a89e16
use submit_parachain_head_call_ex in tests
svyatonik Mar 25, 2024
b984204
removed commented code
svyatonik Mar 25, 2024
d4533e2
changed condition for consistency
svyatonik Mar 25, 2024
3c9acee
include overweight from runtime signed extensions into submit_paracha…
svyatonik Mar 25, 2024
75b4bc0
fixed comment
svyatonik Mar 25, 2024
1effc3d
removed obsolete code comment
svyatonik Mar 25, 2024
3a7e5aa
added important comment + test
svyatonik Mar 25, 2024
d1eaba0
fix no-std compile
svyatonik Mar 25, 2024
50a44ee
again fix lost change
svyatonik Mar 25, 2024
346cb7c
fix for mandatory + interval check in ext
svyatonik Mar 25, 2024
aea38c0
apply review suggestions
svyatonik Apr 11, 2024
0b1fc99
Update modules/grandpa/src/lib.rs
svyatonik Apr 11, 2024
66d1d96
remove unused getter
svyatonik Apr 12, 2024
561e663
Merge branch 'master' into sv-refund-non-mandatory-headers-fee-polkad…
svyatonik Apr 15, 2024
bea7677
fixed TODOs and added some more tests
svyatonik Apr 15, 2024
c049082
apply new extensions and configurations to bridge-hub-rococo-runtime …
svyatonik Apr 15, 2024
cbf08d0
added tooling to compute `PriorityBoostPerRelayHeader` and `PriorityB…
svyatonik Apr 15, 2024
7aba809
fixed tests in BH runtimes
svyatonik Apr 15, 2024
21962bd
port FinalityApi::free_headers_interval from https://github.com/parit…
svyatonik Apr 16, 2024
aa89040
adapted 0001-asset-transfer test for new fee scheme
svyatonik Apr 16, 2024
51e51d7
fix `bridge-runtime-common` compilation after recent refactoring
svyatonik Apr 16, 2024
f07eddb
added prdoc
svyatonik Apr 16, 2024
c5471c9
fixed messages pallet benchmarks
svyatonik Apr 16, 2024
775ea7b
temporary commented bridges+zombienet tests, because they'll need a n…
svyatonik Apr 16, 2024
9886447
apply suggestion from https://github.com/paritytech/parity-bridges-co…
svyatonik Apr 23, 2024
18e15fb
added comment
svyatonik Apr 23, 2024
cad5d31
Merge branch 'master' into sv-refund-non-mandatory-headers-fee-polkad…
svyatonik Apr 23, 2024
cde347f
added free_relay_extrinsic_works tests to ensure that we submit final…
svyatonik Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitlab/pipeline/zombienet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ include:
# polkadot tests
- .gitlab/pipeline/zombienet/polkadot.yml
# bridges tests
- .gitlab/pipeline/zombienet/bridges.yml
# - .gitlab/pipeline/zombienet/bridges.yml
bkontur marked this conversation as resolved.
Show resolved Hide resolved
9 changes: 9 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bridges/bin/runtime-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ hash-db = { version = "0.16.0", default-features = false }
log = { workspace = true }
scale-info = { version = "2.11.1", default-features = false, features = ["derive"] }
static_assertions = { version = "1.1", optional = true }
tuplex = { version = "0.1", default-features = false }

# Bridge dependencies

Expand Down Expand Up @@ -82,6 +83,7 @@ std = [
"sp-runtime/std",
"sp-std/std",
"sp-trie/std",
"tuplex/std",
"xcm-builder/std",
"xcm/std",
]
Expand Down
Loading
Loading