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

Make some headers submissions free #2873

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e358816
added FreeHeadersInterval to pallet-bridge-grandpa configuration
svyatonik Mar 12, 2024
824b8b9
added is_free_execution_expected parameter to the submit_finality_pro…
svyatonik Mar 12, 2024
e901f46
move transaction extensions to a separate folder
svyatonik Mar 12, 2024
2f13251
move grandpa call result check from RefundTransactionExtensionAdapter…
svyatonik Mar 13, 2024
efcb990
added RefundBridgedMessages to refund and bump priority of standalone…
svyatonik Mar 13, 2024
186a73b
check_obsolete_submit_finality_proof may now boost transaction priori…
svyatonik Mar 13, 2024
0298318
added CheckAndBoostBridgeGrandpaTransactions that checks whether brid…
svyatonik Mar 13, 2024
1541ba5
relayer may be slashed to explicit account
svyatonik Mar 13, 2024
64418ac
slash registered relayer if it has submitted failed GRANDPA transaction
svyatonik Mar 13, 2024
48bce25
allow accepting some parachain headers for free
svyatonik Mar 13, 2024
8003f8e
added FreeParachainUpdateForFreeRelayHeader
svyatonik Mar 13, 2024
b4fc169
fix benchmarks compilation
svyatonik Mar 15, 2024
358c7f2
added WeightInfoExt for pallet-bridge-grandpa to include extra wight …
svyatonik Mar 15, 2024
3a6d946
also refund for submitting initial parachain head
svyatonik Mar 20, 2024
85dfd1b
make FreeHeadersRemaining an Option => we know that when we are outsi…
svyatonik Mar 20, 2024
a3e900b
add more traces to pallets
svyatonik Mar 20, 2024
d1045df
check for reorgs in signed ext for parachains module
svyatonik Mar 20, 2024
ff8f874
fix benchmarks compilation
svyatonik Mar 20, 2024
13ec138
free interval instead of fixed free headers
svyatonik Mar 22, 2024
84ff978
fixed trace
svyatonik Mar 22, 2024
e2ad181
CannotAcceptMoreFreeHeaders -> FreeHeadersLimitExceded
svyatonik Mar 22, 2024
981c9a1
additional_call_result_check -> check_call_result_ex
svyatonik Mar 22, 2024
a0da3dc
is_granda_call_succeeded -> is_grandpa_call_successful
svyatonik Mar 22, 2024
8a74991
move tx priority boost from check_obsolete_submit_finality_proof to e…
svyatonik Mar 22, 2024
e62ba6e
lost changes
svyatonik Mar 22, 2024
36d7162
dec counter when importing new para header
svyatonik Mar 22, 2024
bb4ad4b
limit maximal "free" parachain head size
svyatonik Mar 25, 2024
22b5499
added grandpa_and_parachain_pallets_share_free_headers_counter test
svyatonik Mar 25, 2024
2e3bc96
with free intervals (instead of fixed free headers) we need to check …
svyatonik Mar 25, 2024
600c293
fix test name
svyatonik Mar 25, 2024
39a5504
added CheckAndBoostBridgeParachainsTransactions to boost parachain tr…
svyatonik Mar 25, 2024
a5e34a9
check parachain id in CheckAndBoostBridgeParachainsTransactions
svyatonik Mar 25, 2024
392e682
use submit_parachain_head_call_ex in tests
svyatonik Mar 25, 2024
1040616
removed commented code
svyatonik Mar 25, 2024
f138b55
changed condition for consistency
svyatonik Mar 25, 2024
ab497ce
include overweight from runtime signed extensions into submit_paracha…
svyatonik Mar 25, 2024
bcaeffe
fixed comment
svyatonik Mar 25, 2024
43c1cd5
removed obsolete code comment
svyatonik Mar 25, 2024
91d1b13
added important comment + test
svyatonik Mar 25, 2024
bb4b9fb
fix no-std compile
svyatonik Mar 25, 2024
ab2af9f
again fix lost change
svyatonik Mar 25, 2024
23bff92
fix for mandatory + interval check in ext
svyatonik Mar 25, 2024
c04c52a
apply review suggestions
svyatonik Apr 11, 2024
e3f3b98
Update modules/grandpa/src/lib.rs
svyatonik Apr 11, 2024
e0ac18f
remove unused getter
svyatonik Apr 12, 2024
a1affab
Merge branch 'sv-refund-non-mandatory-headers' of https://github.com/…
svyatonik Apr 12, 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
1 change: 1 addition & 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 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.10.0", 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