Add a check for transaction type when checking for end of parsing

This commit is contained in:
pscott
2021-05-20 20:18:48 +02:00
parent 720f8cd65b
commit 27b380ff0a

View File

@@ -440,8 +440,8 @@ static parserStatus_e processTxInternal(txContext_t *context) {
return USTREAM_FINISHED;
}
// Old style transaction
if ((context->currentField == LEGACY_RLP_V ||
context->currentField == EIP2930_RLP_YPARITY) &&
if (((context->txType == LEGACY && context->currentField == LEGACY_RLP_V) ||
(context->txType == EIP2930 && context->currentField == EIP2930_RLP_YPARITY)) &&
(context->commandLength == 0)) {
context->content->vLength = 0;
return USTREAM_FINISHED;