Limit size of message delivery transaction (#575)

* limit messages size in delivery transaction

* docs
This commit is contained in:
Svyatoslav Nikolsky
2020-12-15 13:46:14 +03:00
committed by Bastian Köcher
parent d47658c92e
commit 8a5b51a944
12 changed files with 170 additions and 30 deletions
@@ -133,6 +133,8 @@ pub fn run(
// TODO: subtract base weight of delivery from this when it'll be known
// https://github.com/paritytech/parity-bridges-common/issues/78
max_messages_weight_in_single_batch: bp_millau::MAXIMUM_EXTRINSIC_WEIGHT,
// 2/3 is reserved for proofs and tx overhead
max_messages_size_in_single_batch: bp_millau::MAXIMUM_EXTRINSIC_SIZE as usize / 3,
},
},
RialtoSourceClient::new(rialto_client, lane.clone(), lane_id, MILLAU_BRIDGE_INSTANCE),