Backport latest relevant dynamic fees changes from v1 to v2#2372
Merged
svyatonik merged 2 commits intoxcm-dynamic-fees-using-backoff-mechanismfrom Aug 23, 2023
Merged
Conversation
serban300
approved these changes
Aug 23, 2023
| ); | ||
| // if bridge has reported congestion, we don't change anything | ||
| let mut delivery_fee_factor = Self::delivery_fee_factor(); | ||
| if delivery_fee_factor == MINIMAL_DELIVERY_FEE_FACTOR { |
Collaborator
There was a problem hiding this comment.
Nit: Maybe <= would be a bit safer here. Even though < should never happen.
Contributor
Author
There was a problem hiding this comment.
That's a valid concern. OTOH, if delivery_fee_factor is less than MINIMAL_DELIVERY_FEE_FACTOR then maybe we should change it to minimal (this what will happen with current implementation and won't happen if we apply your suggestion)? That could be if we'll change a constant after deployment for example. WDYT?
Collaborator
There was a problem hiding this comment.
Actually you're right. Better to have it changed to minimal in this case.
Contributor
Author
|
@bot merge |
svyatonik
added a commit
that referenced
this pull request
Aug 25, 2023
… pallet-xcm-bridge-hub (#2261) * added backoff mechanism to inbound bridge queue * impl backpressure in the XcmBlobHaulerAdapter * leave TODOs * BridgeMessageProcessor prototype * another TODO * Revert "also temporary (?) remove BridgesByLocalOrigin because the storage format will likely change to be able to resume bridges from the on_iniitalize/on_idle" This reverts commit bdd7ae1. * prototype for QueuePausedQuery * implement ExportXcm and MessageDispatch for pallet-xcm-bridge-hub * spelling * flush * small comments to myself * more backports from dynamic-fees-v1 * use new pallet as exporter and dispatcher in Millau * use new pallet as exporter and dispatcher in Rialto * use new pallet as exporter and dispatcher in RialtoParachain * flush * fix remaining compilation issues * warnings + fmt * fix tests * LocalXcmChannelManager * change lane ids * it works! * remove bp-xcm-bridge-hub-router and use LocalXcmChannelManager everywhere * removed commented code * cleaning up * cleaning up * cleaning up * - separated BridgeId and LaneId - BridgeId now uses versioned universal locations - added missing stuff to exporter.rs * OnMessagesDelivered is back * start using bp-xcm-bridge-hub as OnMessagesDelivered * cleaning up * spelling * fix stupid issues * Backport latest relevant dynamic fees changes from v1 to v2 (#2372) * backport latest relevant dynamic fees changes from v1 to v2 * fix comment
bkontur
pushed a commit
that referenced
this pull request
May 7, 2024
… pallet-xcm-bridge-hub (#2261) * added backoff mechanism to inbound bridge queue * impl backpressure in the XcmBlobHaulerAdapter * leave TODOs * BridgeMessageProcessor prototype * another TODO * Revert "also temporary (?) remove BridgesByLocalOrigin because the storage format will likely change to be able to resume bridges from the on_iniitalize/on_idle" This reverts commit bdd7ae1. * prototype for QueuePausedQuery * implement ExportXcm and MessageDispatch for pallet-xcm-bridge-hub * spelling * flush * small comments to myself * more backports from dynamic-fees-v1 * use new pallet as exporter and dispatcher in Millau * use new pallet as exporter and dispatcher in Rialto * use new pallet as exporter and dispatcher in RialtoParachain * flush * fix remaining compilation issues * warnings + fmt * fix tests * LocalXcmChannelManager * change lane ids * it works! * remove bp-xcm-bridge-hub-router and use LocalXcmChannelManager everywhere * removed commented code * cleaning up * cleaning up * cleaning up * - separated BridgeId and LaneId - BridgeId now uses versioned universal locations - added missing stuff to exporter.rs * OnMessagesDelivered is back * start using bp-xcm-bridge-hub as OnMessagesDelivered * cleaning up * spelling * fix stupid issues * Backport latest relevant dynamic fees changes from v1 to v2 (#2372) * backport latest relevant dynamic fees changes from v1 to v2 * fix comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
follow up for #2371
This PR backports all relevant dynamic fees changes from
polkadot-staging. Relevant means that we are still not sending XCM messages to the source chain to pause the bridge and will be relying on paritytech/polkadot-sdk#5062 in the future.One change to
polkadot-stagingis that I've reverted removal ofSiblingBridgeHubLocationfrompallet-xcm-bridge-hub-routerconfig, because it is required now to check whether the channel is congested or no. This must also be revisited in a context of #2380 - maybe we'll need to remove thisBridgeTableat all in v2.