You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can fix this by either making these errors of type IsInvalidTxErr, but the core problem here is the check for errors specific to package core. This breaks as the tx processing calls into other packages, for example crypto, which has it's own set of errors and does not import package core.
Probably a better solution is to reconsider the error type checking in this case, and explicitly handle generic errors in a way that will properly reject the tx.
The text was updated successfully, but these errors were encountered:
If at https://github.com/ethereum/go-ethereum/blob/develop/core/block_processor.go#L77
an error is returned which does not match
Then it panics on line 84 as the gas variable is nil:
The error returned for for test cases TRANSCT_rvalue_TooShort, TRANSCT_rvalue_TooLarge and TRANSCT_svalue_TooLarge in https://github.com/ethereum/tests/blob/develop/BlockchainTests/bcInvalidRLPTest.json
is https://github.com/ethereum/go-ethereum/blob/develop/core/types/transaction.go#L172
We can fix this by either making these errors of type IsInvalidTxErr, but the core problem here is the check for errors specific to package core. This breaks as the tx processing calls into other packages, for example crypto, which has it's own set of errors and does not import package core.
Probably a better solution is to reconsider the error type checking in this case, and explicitly handle generic errors in a way that will properly reject the tx.
The text was updated successfully, but these errors were encountered: