-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
What problem does your feature solve?
Currently CLI returns an error if the resource fee exceeds u32::MAX. However, since protocol 23 resource fees up to i64::MAX are allowed by the protocol, so this error is no longer correct to return.
What would you like to see?
Instead of returning an error when the sum resource fee and inclusion fee exceeds u32:MAX we should do the following:
- Leave the resource fee as is
- Set the
feefield of transaction envelope to0 - Sign the envelope
- Wrap the envelope into fee bump envelope, with the same source account as for the original transaction source account
- Set the
feeof fee bump envelope toresource_fee + 2 * inclusion_fee - Sign the fee bump envelope
What alternatives are there?
Potentially CLI could just inform users that they should use the fee bump envelope, but that's not a great UX. At the very least, there should be a way for building a fee bump transaction via CLI, but ideally this should be done automatically, as described above.