-
Notifications
You must be signed in to change notification settings - Fork 839
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 max_fee_per_data_gas field to transaction #4970
Conversation
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@@ -184,6 +185,11 @@ | |||
} | |||
} | |||
|
|||
public static void writeBlobVersionedHashes( | |||
final RLPOutput rlpOutput, final List<Hash> versionedHashes) { |
Check notice
Code scanning / CodeQL
Useless parameter
@@ -184,6 +185,11 @@ | |||
} | |||
} | |||
|
|||
public static void writeBlobVersionedHashes( | |||
final RLPOutput rlpOutput, final List<Hash> versionedHashes) { |
Check notice
Code scanning / CodeQL
Useless parameter
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
# Conflicts: # ethereum/core/src/test-support/java/org/hyperledger/besu/ethereum/core/BlockDataGenerator.java # evm/src/main/java/org/hyperledger/besu/evm/frame/MessageFrame.java
Optional.empty(), | ||
Optional.empty(), | ||
unsignedLong(gas), | ||
Optional.ofNullable(address(toAddress)), |
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.
is it normal to remove the optional for the to address ?
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.
yes because it is done in the TransactionBuilder
@@ -1349,6 +1349,7 @@ public static class Builder { | |||
private Multimap<Address, Bytes32> accessListWarmStorage = HashMultimap.create(); | |||
|
|||
private Optional<List<Hash>> versionedHashes; | |||
|
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.
we can remove this modification
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.
it is voluntary, to add a missing space to separate 2 methods
@@ -72,13 +74,16 @@ | |||
|
|||
public static final BigInteger TWO = BigInteger.valueOf(2); | |||
|
|||
public static final int DATA_GAS_PER_BLOB = 131072; // 2^17 |
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.
maybe a good idea to move that in the protocol schedule part in a future PR
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.
I agree, and will remove it from this review, since it will go in the data gas accounting PR
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Transaction.java
Show resolved
Hide resolved
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Transaction.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
public BlockOptions setMaxFeePerDataGas(final Optional<Wei> maxFeePerDataGas) { | ||
this.maybeMaxFeePerDataGas = Optional.of(maxFeePerDataGas); |
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.
is this optional of optional?
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.
I followed the same pattern that was used for the optional baseFee, that is also optional of optional here
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.
yeah I saw that. it's confusing though!
it depends on the protocol schedule, and will managed in a next PR. Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
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.
👍
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio fabio.difabio@consensys.net
PR description
Fixed Issue(s)
Add max_fee_per_data_gas field to transaction
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog