You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest release v0.0.1 allows users to pass in SubmitOptions which include GasLimit and Fee. Individually they are not very useful because both depend on blob size of the transaction they're submitting. If the client configures a fixed GasLimit and Fee, they risk either not getting their transaction processed for larger blobs or overpaying for smaller blobs.
Instead it would be better to allow users to configure a GasPrice per transaction so that GasLimit and Fee can be derived from it based on the blob size.
So, there should be a new minor version bump release which replaces *SubmitOptions with GasPrice float64. If the GasPrice is less than zero, the DA server can default to DefaultSubmitOptions.
The text was updated successfully, but these errors were encountered:
This PR modifies the blob interface to replace SubmitOptions with
GasLimit. The reasoning here is that setting a gas price is a lot more
intuitive/easier than calculating the fee and gas limit, which take
cosmossdk and celestia-app imports to calculate without much effort.
Related: rollkit/go-da#30
Based on a suggestion from @vgonkivs we alias float64 to be able to
provide a default value, but now that its there I think we can just have
float64 and the same constructor, as it doesn't change that much.
Breaks the API, cc @jcstein, @tuxcanfly, and @Ferret-san .
Closes#3053.
Implementation ideas
The latest release
v0.0.1
allows users to pass inSubmitOptions
which includeGasLimit
andFee
. Individually they are not very useful because both depend on blob size of the transaction they're submitting. If the client configures a fixedGasLimit
andFee
, they risk either not getting their transaction processed for larger blobs or overpaying for smaller blobs.Instead it would be better to allow users to configure a
GasPrice
per transaction so thatGasLimit
andFee
can be derived from it based on the blob size.So, there should be a new minor version bump release which replaces
*SubmitOptions
withGasPrice float64
. If theGasPrice
is less than zero, the DA server can default toDefaultSubmitOptions
.The text was updated successfully, but these errors were encountered: