mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
fix transaction resubmitter limits for Millau -> Rialto transactions (#1135)
This commit is contained in:
committed by
Bastian Köcher
parent
77969c567f
commit
74024b028c
@@ -54,8 +54,16 @@ macro_rules! select_bridge {
|
|||||||
type Target = relay_millau_client::Millau;
|
type Target = relay_millau_client::Millau;
|
||||||
type TargetSign = relay_millau_client::Millau;
|
type TargetSign = relay_millau_client::Millau;
|
||||||
|
|
||||||
const TIP_STEP: bp_millau::Balance = 1_000_000;
|
// When large message is being sent from Millau to Rialto AND other transactions are blocking
|
||||||
const TIP_LIMIT: bp_millau::Balance = 1_000_000_000;
|
// it from being mined, we'll see something like this in logs:
|
||||||
|
//
|
||||||
|
// Millau transaction priority with tip=0: 17800827994. Target priority: 526186677695
|
||||||
|
//
|
||||||
|
// So since fee multiplier in Millau is `1` and `WeightToFee` is `IdentityFee`, then we need
|
||||||
|
// tip around `526186677695 - 17800827994 = 508_385_849_701`. Let's round it up to `1_000_000_000_000`.
|
||||||
|
|
||||||
|
const TIP_STEP: bp_millau::Balance = 1_000_000_000;
|
||||||
|
const TIP_LIMIT: bp_millau::Balance = 1_000_000_000_000;
|
||||||
|
|
||||||
const STALLED_BLOCKS: bp_millau::BlockNumber = 5;
|
const STALLED_BLOCKS: bp_millau::BlockNumber = 5;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user