-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add dataGasUsed and dataGasPrice to receipts for 4844 txs #15
Add dataGasUsed and dataGasPrice to receipts for 4844 txs #15
Conversation
* Adding preliminary SSZ encoding/decoding of Transaction Network Payload * Adding ssz snapshot jar, delete it before moving to main also removing licenses.... Signed-off-by: Jiri Peinlich <[email protected]> (cherry picked from commit bd147e0) (cherry picked from commit 4e19926eb7b85fda7d40a0f565d46c0d9b27075d)
Signed-off-by: Jiri Peinlich <[email protected]> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
* json container for getting blob bundles * spdx headers, formatting, npe fix Signed-off-by: Justin Florentine <[email protected]> Co-authored-by: Jason Frame <[email protected]> Co-authored-by: garyschulte <[email protected]> (cherry picked from commit 5fa9433) (cherry picked from commit af8466f1561b4d5995bfa85782acee0644c3f879)
merge of hyperledger#4992 into interop feature branch Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 949e3fe) (cherry picked from commit 9734c983ce00bda161434506688f12ee07bbd820)
…gs (hyperledger#5003) * Adding trace logs to mention ssz transaction encoding/deconding in logs * ssz encoding should go int keccak256 of blob transaction Signed-off-by: Jiri Peinlich <[email protected]> (cherry picked from commit d92909f) (cherry picked from commit 42ba8192139c1f4fabad40e3085e158ca99a9156)
Signed-off-by: Jiri Peinlich <[email protected]> Signed-off-by: Jiri Peinlich <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]> (cherry picked from commit 6085b23) (cherry picked from commit d2d761b389ea811a7d62b26c6af7e74bb1c15564)
* adding test for nonblob blob transaction * Adapt hash and network size computation for blob txs Signed-off-by: Fabio Di Fabio <[email protected]> Co-authored-by: Jiri Peinlich <[email protected]> Co-authored-by: Justin Florentine <[email protected]> Signed-off-by: Justin Florentine <[email protected]> Signed-off-by: Jiri Peinlich <[email protected]> (cherry picked from commit fd427d4) (cherry picked from commit 28e8d18130cebe1e2835e299f6df2079f2351925)
* adding test for nonblob blob transaction * Do not add consumed data gas to gas used in the transaction receipt Signed-off-by: Jiri Peinlich <[email protected]> Signed-off-by: Fabio Di Fabio <[email protected]> Co-authored-by: Jiri Peinlich <[email protected]> (cherry picked from commit b13583a) (cherry picked from commit 5993c03220891b2d233c6957fb2fc47b5685de71)
Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit f20d064) (cherry picked from commit bcd9735d1605f4fffef57bec4af95bfae818ac7e)
Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 94e1141) (cherry picked from commit 95e23f341006ec98898643610716f24b5725ec35)
Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 031db82) (cherry picked from commit de9875b00e72c018603885fa3c68142e828d9a06)
…ashes validation (hyperledger#5071) * Fix: read blobs as raw bytes not as unit256 Signed-off-by: Fabio Di Fabio <[email protected]> * Do not load a trusted setup more than once Signed-off-by: Fabio Di Fabio <[email protected]> * Update evm/src/main/java/org/hyperledger/besu/evm/precompile/KZGPointEvalPrecompiledContract.java Co-authored-by: Justin Florentine <[email protected]> Signed-off-by: Fabio Di Fabio <[email protected]> * Ignore tests that fails due to mixing c-kzg presets Signed-off-by: Fabio Di Fabio <[email protected]> * Revert failing unit test Signed-off-by: Fabio Di Fabio <[email protected]> --------- Signed-off-by: Fabio Di Fabio <[email protected]> Co-authored-by: Justin Florentine <[email protected]> (cherry picked from commit cd67140) (cherry picked from commit 25691b172113d4410fe55adc9271aa4a093f419a)
…s available (hyperledger#5091) Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 38c3988) (cherry picked from commit 09849be01c9aa66d9733bd2f847825c988deb891)
Signed-off-by: Justin Florentine <[email protected]> (cherry picked from commit c8d18188bb5e6087c84ff446b086e74ef64cb652)
Signed-off-by: Justin Florentine <[email protected]> (cherry picked from commit 38546f87e260da38de0a27652c7f4f85c42b9ad9)
Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
* Adding preliminary SSZ encoding/decoding of Transaction Network Payload * Adding ssz snapshot jar, delete it before moving to main also removing licenses.... Signed-off-by: Jiri Peinlich <[email protected]> (cherry picked from commit bd147e0) (cherry picked from commit 4e19926eb7b85fda7d40a0f565d46c0d9b27075d)
Signed-off-by: Jiri Peinlich <[email protected]> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
* json container for getting blob bundles * spdx headers, formatting, npe fix Signed-off-by: Justin Florentine <[email protected]> Co-authored-by: Jason Frame <[email protected]> Co-authored-by: garyschulte <[email protected]> (cherry picked from commit 5fa9433) (cherry picked from commit af8466f1561b4d5995bfa85782acee0644c3f879)
merge of hyperledger#4992 into interop feature branch Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 949e3fe) (cherry picked from commit 9734c983ce00bda161434506688f12ee07bbd820)
…gs (hyperledger#5003) * Adding trace logs to mention ssz transaction encoding/deconding in logs * ssz encoding should go int keccak256 of blob transaction Signed-off-by: Jiri Peinlich <[email protected]> (cherry picked from commit d92909f) (cherry picked from commit 42ba8192139c1f4fabad40e3085e158ca99a9156)
Signed-off-by: Jiri Peinlich <[email protected]> Signed-off-by: Jiri Peinlich <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]> (cherry picked from commit 6085b23) (cherry picked from commit d2d761b389ea811a7d62b26c6af7e74bb1c15564)
* adding test for nonblob blob transaction * Adapt hash and network size computation for blob txs Signed-off-by: Fabio Di Fabio <[email protected]> Co-authored-by: Jiri Peinlich <[email protected]> Co-authored-by: Justin Florentine <[email protected]> Signed-off-by: Justin Florentine <[email protected]> Signed-off-by: Jiri Peinlich <[email protected]> (cherry picked from commit fd427d4) (cherry picked from commit 28e8d18130cebe1e2835e299f6df2079f2351925)
* adding test for nonblob blob transaction * Do not add consumed data gas to gas used in the transaction receipt Signed-off-by: Jiri Peinlich <[email protected]> Signed-off-by: Fabio Di Fabio <[email protected]> Co-authored-by: Jiri Peinlich <[email protected]> (cherry picked from commit b13583a) (cherry picked from commit 5993c03220891b2d233c6957fb2fc47b5685de71)
Signed-off-by: Justin Florentine <[email protected]>
merge of hyperledger#4992 into interop feature branch Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 949e3fe) (cherry picked from commit 9734c983ce00bda161434506688f12ee07bbd820)
Signed-off-by: Justin Florentine <[email protected]> (cherry picked from commit 38546f87e260da38de0a27652c7f4f85c42b9ad9)
merge of hyperledger#4992 into interop feature branch Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 949e3fe) (cherry picked from commit 9734c983ce00bda161434506688f12ee07bbd820)
Signed-off-by: Justin Florentine <[email protected]> (cherry picked from commit 38546f87e260da38de0a27652c7f4f85c42b9ad9)
merge of hyperledger#4992 into interop feature branch Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 949e3fe) (cherry picked from commit 9734c983ce00bda161434506688f12ee07bbd820)
Signed-off-by: Justin Florentine <[email protected]> (cherry picked from commit 38546f87e260da38de0a27652c7f4f85c42b9ad9)
Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
merge of hyperledger#4992 into interop feature branch Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 949e3fe) (cherry picked from commit 9734c983ce00bda161434506688f12ee07bbd820)
Signed-off-by: Justin Florentine <[email protected]> (cherry picked from commit 38546f87e260da38de0a27652c7f4f85c42b9ad9)
merge of hyperledger#4992 into interop feature branch Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 949e3fe) (cherry picked from commit 9734c983ce00bda161434506688f12ee07bbd820)
Signed-off-by: Justin Florentine <[email protected]> (cherry picked from commit 38546f87e260da38de0a27652c7f4f85c42b9ad9)
merge of hyperledger#4992 into interop feature branch Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 949e3fe) (cherry picked from commit 9734c983ce00bda161434506688f12ee07bbd820) Signed-off-by: Gabriel-Trintinalia <[email protected]>
Signed-off-by: Justin Florentine <[email protected]> (cherry picked from commit 38546f87e260da38de0a27652c7f4f85c42b9ad9) Signed-off-by: Gabriel-Trintinalia <[email protected]>
merge of hyperledger#4992 into interop feature branch Signed-off-by: Fabio Di Fabio <[email protected]> (cherry picked from commit 949e3fe) (cherry picked from commit 9734c983ce00bda161434506688f12ee07bbd820) Signed-off-by: Gabriel-Trintinalia <[email protected]>
Signed-off-by: Justin Florentine <[email protected]> (cherry picked from commit 38546f87e260da38de0a27652c7f4f85c42b9ad9) Signed-off-by: Gabriel-Trintinalia <[email protected]>
Signed-off-by: Gabriel-Trintinalia <[email protected]>
Signed-off-by: Gabriel-Trintinalia <[email protected]>
Signed-off-by: Gabriel-Trintinalia <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Gabriel-Trintinalia <[email protected]>
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. couple of comments
when(blockchain.getBlockByHash(blockHash)).thenReturn(Optional.of(block)); | ||
mockProtocolSpec(header); | ||
when(blockchain.getTransactionLocation(receiptHash)) | ||
.thenReturn(Optional.of(transactionLocation)); |
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 many mocks!
final Transaction transaction, final BlockHeader header, final ProtocolSpec protocolSpec) { | ||
if (transaction.getType().supportsBlob()) { | ||
return blockchain | ||
.getBlockHeader(header.getParentHash()) |
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.
why do you need to use the parentHeader here rather than the header passed in?
268f33a
to
904d001
Compare
Signed-off-by: Fabio Di Fabio <[email protected]>
PR description
Add dataGasUsed and dataGasPrice to receipts for 4844 txs
Fixed Issue(s)
hyperledger#5489