-
Notifications
You must be signed in to change notification settings - Fork 782
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
vm: add tx receipt to RunTxResult, allow BlockBuilder to build a block with zero txs #1185
Conversation
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
6f34850
to
89f5ee2
Compare
I'd also add a test that does |
Updated the branch here (have tested locally with a rebase before). |
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.
Great PR in general 😀 , have some further remarks though which needs to be addressed.
Realistically I think it is too rushed to still do a release here (and also including the tx bug reports) still until the end of the week, but we can target early next week for a new release.
await simpleRun(vm, [tx]) | ||
t.end() | ||
}) | ||
}) |
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.
So, for the release notes: did runBlock()
previously not work with typed txs or are these just additional tests for safety reasons?
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.
there was a bug in the block constructor would recreate a AccessListEIP2930Transaction as a legacy transaction (due to the missing type
field, solved by the newly introduced alias). these tests were added to ensure the bug was fixed, and so it won't be reintroduced in the future (#1185 (comment))
Update: ah, took a step back here. Maybe we can do a release tomorrow, but very much depends on the subsequent discussion and decisions here. Generally #1189 is a lot more pressing, in doubt we should do a bugfix release in between tomorrow. |
… in as a 0x-prefixed string
… for `fromTxData` and creates the correct tx
…ockchain in case it throws on validating
…data (adds coverage for `type` property alias)
* add `_type` and aliases * move EIP-2930 aliases for senderS, senderR, yParity so they can be available for all transactions
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.
LGTM, thanks a lot! 😄
This PR:
receipt
toRunTxResult
runBlock
torunTx
BlockBuilder
to allow building a block with zero txsAccessListEIP2930Transaction
: adds aliastype
fortransactionType
so it can be interpreted correctly when passed tofromTxData
TransactionFactory
: For extra safety, addstoBuffer
ontxData.type
in case a 0x-prefixed hex string is passed inrunBlock
BlockBuilder
: Moves thestateManager.commit
to after putting the block in blockchain in case it throws on validating