Reward delivery confirmation transaction submitter (aka confirmation relayer) (#599)

* reward confirmation relayer

* Update modules/message-lane/src/instant_payments.rs

Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>

* added some constants

* pallet_balances

* removed comment

* fix typo

Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
This commit is contained in:
Svyatoslav Nikolsky
2021-01-15 00:11:51 +03:00
committed by Bastian Köcher
parent 2cfd2e72b7
commit f3ea6a8d3d
8 changed files with 253 additions and 63 deletions
+3
View File
@@ -422,6 +422,8 @@ parameter_types! {
bp_millau::MAX_UNREWARDED_RELAYER_ENTRIES_AT_INBOUND_LANE;
pub const MaxUnconfirmedMessagesAtInboundLane: bp_message_lane::MessageNonce =
bp_rialto::MAX_UNCONFIRMED_MESSAGES_AT_INBOUND_LANE;
// TODO: https://github.com/paritytech/parity-bridges-common/pull/598
pub GetDeliveryConfirmationTransactionFee: Balance = 0;
pub const RootAccountForPayments: Option<AccountId> = None;
}
@@ -447,6 +449,7 @@ impl pallet_message_lane::Config for Runtime {
type MessageDeliveryAndDispatchPayment = pallet_message_lane::instant_payments::InstantCurrencyPayments<
Runtime,
pallet_balances::Module<Runtime>,
GetDeliveryConfirmationTransactionFee,
RootAccountForPayments,
>;