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
Changes from 1 commit
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
43 changes: 43 additions & 0 deletions prdoc/pr_4102.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
title: "Bridge: make some headers submissions free"

doc:
- audience: Runtime Dev
description: |
Adds `FreeHeadersInterval` configuration constant to the `pallet_bridge_grandpa`.
Transactions that improve best known header by at least `FreeHeadersInterval` headers
are now free for the submitter. Additionally, we allow single free parachain header
update per every free relay chain header. Bridge signed extensions are adjusted
acatangiu marked this conversation as resolved.
Show resolved Hide resolved
to support that new scheme. Bridge runtime APIs are extended to support that new
scheme. Bridge fees are decreased by ~98% because now they do not include cost of
finality submissions - we assume relayers will be submitting finality transactions
for free.

crates:
- name: bridge-runtime-common
bump: major
- name: bp-bridge-hub-cumulus
bump: patch
- name: bp-bridge-hub-kusama
bump: major
- name: bp-bridge-hub-polkadot
bump: major
- name: bp-bridge-hub-rococo
bump: major
- name: bp-bridge-hub-westend
bump: major
- name: pallet-bridge-grandpa
bump: major
- name: pallet-bridge-parachains
bump: major
- name: bp-parachains
bump: major
- name: bp-runtime
bump: major
- name: relay-substrate-client
bump: major
- name: bridge-hub-rococo-runtime
bump: major
- name: bridge-hub-westend-runtime
bump: major
- name: bridge-hub-test-utils
bump: minor
Loading