celestia-app
celestia-app copied to clipboard
ADR: Pay for multiple messages with a single `MsgPayForData`
Currently, each MsgPayForData transaction can only pay for a single message. Ideally, users would be able to pay for multiple messages using a single payment transaction. Not only that, but because this reduces the number of state transitions each full node would have to execute, we would want to incentivize this behavior, by adding some base fee to PayForData
Are you proposing a consensus-critical change (i.e. having multiple data commitments per PFD), or an application-level standard?
both?
fwiw @musalbas and @liamsi were discussing this idea earlier this week, and I just wanted to write it down so we can begin discussing it. It's not something I think would make mainnet imho
More important than this would be to add an overhead cost to MsgPayForData, so that e.g. one MsgPayForData with 10KB of data is cheaper than two MsgPayForData with 5KB of data.
Such an overhead doesn't necessarily have to be enforced by the protocol, but can rather be an emergent property of a separate fee market for Celestia-app transactions: https://github.com/celestiaorg/celestia-app/issues/738
This becomes significantly easier after implementing #835