-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify gas consumption of PFD #997
Comments
I couldn't easily acquire Arabica tokens but I was able to repro on $ celestia-appd query account celestia1g5n0ma5k3sqswfdge4k32525gdpcmcr8gqvh6z
'@type': /cosmos.auth.v1beta1.BaseAccount
account_number: "0"
address: celestia1g5n0ma5k3sqswfdge4k32525gdpcmcr8gqvh6z
pub_key:
'@type': /cosmos.crypto.secp256k1.PubKey
key: A5GDXc2/suE5N2biyVplRXg3vYzizF6+lCdyS0PNI1RM
sequence: "1"
$ celestia-appd query bank balances celestia1g5n0ma5k3sqswfdge4k32525gdpcmcr8gqvh6z
balances:
- amount: "999995000000000"
denom: utia
pagination:
next_key: null
total: "0"
$ celestia-appd tx blob payForData 0101010101010101 0101010101010101 --from validator --keyring-backend test
// trimmed output wait a few blocks $ celestia-appd query account celestia1g5n0ma5k3sqswfdge4k32525gdpcmcr8gqvh6z
'@type': /cosmos.auth.v1beta1.BaseAccount
account_number: "0"
address: celestia1g5n0ma5k3sqswfdge4k32525gdpcmcr8gqvh6z
pub_key:
'@type': /cosmos.crypto.secp256k1.PubKey
key: A5GDXc2/suE5N2biyVplRXg3vYzizF6+lCdyS0PNI1RM
sequence: "2"
$ celestia-appd query bank balances celestia1g5n0ma5k3sqswfdge4k32525gdpcmcr8gqvh6z
balances:
- amount: "999995000000000"
denom: utia
pagination:
next_key: null
total: "0" |
I think the fee is set to zero by default, and unless the node has changed their app.toml config, then fee free txs will be allowed to be submitted and included in a block. This could still be a bug tho, we should verify after specifying a fee |
Cosmos SDK docs on Main Gas Meter:
Even though keeper isn't explicitly listed as a location to do gas consumption, it seems possible per x/authz/keeper/keeper.go. If keeper isn't a valid location to do gas consumption, I think we could use the Msg service. |
I'm confused, are we not consuming gas in the same way here? |
Ahh @evan-forbes is correct, I wasn't specifying a fee: $ celestia-appd tx blob payForData 0101010101010101 0101010101010101 --from validator --keyring-backend test --help --fees 10utia
// trimmed output wait a few blocks $ celestia-appd query bank balances celestia1g5n0ma5k3sqswfdge4k32525gdpcmcr8gqvh6z
balances:
- amount: "999994999999990"
denom: utia
pagination:
next_key: null
total: "0" I wonder if we should specify a default fee of 1utia in config so that testnet transactions more closely resemble mainnet behavior |
Right we do. I was under the impression that this line wasn't working as expected but it does appear working and valid so we don't need to change it. |
phew, ok I was panicking there a bit 😅 we have
#669 (comment) fwiw, which would require some fee by default. We will definitely have some value there other than zero, but not sure what yet. It kinda depends on the token price |
Same
Thanks for the link. Agreed on some non-zero value. Out of curiosity, where would we define something like:
such that it ends up in the |
we should just be able to change this iirc celestia-app/cmd/celestia-appd/cmd/root.go Line 111 in 18c9cab
|
can we close this issue? |
thank you for clearing this up 🙏 |
Summary of Bug
Source @jcstein
Version
Arabica
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: