Delivery fee should cover cost of local processing (#975)
* Submit outbound message without MessageQueue * Priority control * Update priority * Update cumulus * Reserve space for high priority messages * Fix compile error & More refactor * Improve processing high priority messages * Some polish * Add priority back * Improve comments * Rename priority to normal * Refactor submit logic * Refactor process message * Add type HighPriorityCommands * Fix clippy * Rename priority with BridgeHub * Update parachain/primitives/core/src/outbound.rs Co-authored-by: Vincent Geddes <[email protected]> * Update parachain/pallets/outbound-queue/src/lib.rs Co-authored-by: Vincent Geddes <[email protected]> * Update parachain/pallets/outbound-queue/src/lib.rs Co-authored-by: Vincent Geddes <[email protected]> * Revamp with ExportOrigin * Fix format * Some polish * Check weight before processing message (#974) * update cumulus submodule * Include base_fee * Redeem vouchers for delivery fee * Estimate fee upon commit_one_message * Balance type as u128 * Improve comments * Runtime api for estimate_fee * Remove all voucher&redeem stuff * Fix for clippy * Benchmark for do_submit_message * Add delivery_fee * Improve fee test * Remove benchmark for submit * Add comments * Rename to calculate_fee * Comments * Add method for total fee * Short name * Rename to commit_messages * Use Balance generic for the api * Update parachain/pallets/outbound-queue/runtime-api/src/lib.rs Co-authored-by: Vincent Geddes <[email protected]> * Rename generic Runtime to T * Remove fee from OutboundQueueTicket * Rename to fees --------- Co-authored-by: Vincent Geddes <[email protected]> Co-authored-by: Vincent Geddes <[email protected]>
parent
1adc5e07
Please register or sign in to comment