Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

Add first pass change to tx rejection #299

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karlfloersch
Copy link
Contributor

Description

This is a first pass WIP that is just missing the correct imports / syntax

Metadata

Fixes

  • Fixes # [Link to Issue]

Contributing Agreement

@tynes
Copy link
Collaborator

tynes commented Apr 5, 2021

I think we could move those changes to here:

func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error {

@karlfloersch
Copy link
Contributor Author

@smartcontracts when you get to this point @tynes has the great suggestion to move these checks into the backend

@@ -558,6 +560,14 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
// Transactor should have enough funds to cover the costs
// cost == V + GP * GL
if vm.UsingOVM {
// TODO: Update syntax to add rejection logic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to check for overflows in this logic when implementing!

@gakonst
Copy link
Contributor

gakonst commented Apr 10, 2021

@karlfloersch What feature/fix is this PR implementing?

@karlfloersch
Copy link
Contributor Author

@karlfloersch What feature/fix is this PR implementing?

Ah this was part of adding fees. @smartcontracts do we have tx rejection logic?

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

Successfully merging this pull request may close these issues.

4 participants