Fix: implement getMixHashOrPrevRandao to return the acutal value in the block header (#3839)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
pull/3848/head
Fabio Di Fabio 3 years ago committed by GitHub
parent daf680c97b
commit 3835cb7238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 10
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/ProcessableBlockHeader.java

@ -9,6 +9,7 @@
### Bug Fixes
- Stop the BlockPropagationManager when it receives the TTD reached event [#3809](https://github.com/hyperledger/besu/pull/3809)
- Correct getMixHashOrPrevRandao to return the value present in the block header [#3839](https://github.com/hyperledger/besu/pull/3839)
## 22.4.0

@ -140,6 +140,16 @@ public class ProcessableBlockHeader implements BlockValues {
return Optional.ofNullable(baseFee);
}
/**
* Returns the mixHash before merge, and the prevRandao value after
*
* @return the mixHash before merge, and the prevRandao value after
*/
@Override
public Bytes32 getMixHashOrPrevRandao() {
return mixHashOrPrevRandao;
}
/**
* Returns the prevRandao of the block.
*

Loading…
Cancel
Save