-
Notifications
You must be signed in to change notification settings - Fork 1
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
Validations for celo txs in txpool #31
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the FeeCurrencyValidator
having no state yet, it is hard to tell whether it is stored and initialized in the right place. So I'll just assume for now that it is.
Feel free to ignore some of the nitpicky comments!
Is there a reason why the tests should fail with
in this stage? I don't see it from the code. |
Yeap, it was a bug |
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
* Validations for celo txs in txpool * Add stateDB usage for celo validation * CRU * Change method name && hardcode true for iswhitelisted for tests * fix wrong negation * Fix lint
Validates and accepts celo transactions in the txpool.
(Extracted from the bigger PR of celo's txpool for clarity)
Missing: actual contract calling code to get fee balance & whitelisted status.