Skip to content
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

Make antehandler local fee check more robust #3044

Closed
ValarDragon opened this issue Dec 8, 2018 · 7 comments
Closed

Make antehandler local fee check more robust #3044

ValarDragon opened this issue Dec 8, 2018 · 7 comments
Assignees

Comments

@ValarDragon
Copy link
Contributor

There ought to be a value metric per validator, which says this coin denomination is worth x gas to me. Then we should change ensureSufficientMempoolFees to instead calculate the gas worth of the provided fees, and compare it to the gas wanted.

This is tagged pre1.0 since we only have one coin at launch. This only becomes a problem once there are multiple coins.

@alexanderbez
Copy link
Contributor

See #3101 (comment)

@alexanderbez alexanderbez self-assigned this Jan 4, 2019
@alexanderbez alexanderbez added core and removed pre1.0 labels Jan 5, 2019
This was referenced Jan 6, 2019
@jackzampolin
Copy link
Member

We just fixed an issue here right? Or are we waiting on #3248 to close this?

@alexanderbez
Copy link
Contributor

I believe @ValarDragon needs to further elaborate on the exact functions he's proposing. #3248 lays the groundwork though for sure.

@ValarDragon
Copy link
Contributor Author

The user provides how many gas 1 coin of each given denom is worth. Then you do the linear combination to determine the amount of gas for which you think this set of coins has paid for. (paid_gas = \sum denom_amount * denom_gas_worth) You then check that the paid for gas is >= to gas wanted.

This can easily be extended to allow the validator to charge for gas wanted in their local checkTx calculation with the same idea.

@rigelrozanski
Copy link
Contributor

@sunnya97 weren't we talking about some form of decentralized value prioritization per different coin type? aka each validator would frequently post updates (via a tx) on what their valuation of each token is relative to the atom, and then the median value would be taken as the global valuation to be used for gas prioritization? - Is this ringing any 🔔 s guys?

@sunnya97
Copy link
Member

@rigelrozanski Yes, that is what we want long term, but we decided that for launch, we're just doing locally set mimimum GasCost at the node level (not in consensus).

@ValarDragon If I understand this correctly, this is regarding being allowed to pay fees using multiple denoms in the same tx? For simplicity, I think we can allow Fees to be paid in only one denom for now.

@ValarDragon
Copy link
Contributor Author

ValarDragon commented Jan 13, 2019

Since were having multiple coins on testnets already, shouldn't we go ahead and fix it given the confusion in GoS? (I think it will be easier to fix this, than it will be to explain the currently really weird behavior to our validators and validators of other chains)

I'm not that opinionated on this, so feel free to change it back to pre1.0 tho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants