-
Notifications
You must be signed in to change notification settings - Fork 138
Description
Adding a "transmission unit" concept to tapd:
Dictates the minimum and maximum amounts, a payment channel, can receive.
Goal: Ensure that invoiced amounts are created with values which can be settled.
- the feature's new functionality: Create a "transmission unit" which dictates a minimum and maximum amount for a payment channel to be able to receive.
- Minimum transmission unit to govern the “ensure that amount value, that's set for an created invoice, is set the minimum unit” “e.g. 1 US cent would be the minimum transmission unit for a taproot asset payment channel”
- The maximum transmission unit could be the cumulative
to_remoteamount of the specified asset
Minimum Transmission Unit:
The minimum transmission unit should govern the minimum Asset amount value set when creating a Taproot Asset payment channel invoice. e.g The minimum transmission unit would be 1 US cent (or equivalent in the specified currency).
Goal: ensure invoices created will receive the minimum amount of the Asset.
Maximum Transmission Unit:
The maximum transmission unit should be set to
CASE
MPP) the cumulative to_remote amount of the specified asset, across all available channels.
non-MPP) to_remote amount of the specified asset, across the specified channel.
These maximum value will prevent excessive amounts from being attempted to be sent through the payment channel, reducing the dysfunction
Benefits:
- Ensures consistency in payment channel amount values
- Prevents creation of invoices with unsettlable small or large amounts
- Reduces risk of overflow or other issues due to excessive amounts
Implementation Details:
To implement this feature, we will need to:
- Introduce a new configuration option for setting the minimum and maximum transmission units.
- Update the payment channel invoice creation logic
- Update the invoice creation logic to enforce that the invoice's
amountvalue is bound between the minimum and maximum transmission units.
Implementation Questions
Given payment-channel availability inconsistency (offline peer etc) what would be robust method to select the maximum TU?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status