Skip to content

Commit 9085282

Browse files
authored
Always set randao in alloy block filler (#79)
* fix: always set prevrandao * chore: bump version and note
1 parent ea840af commit 9085282

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trevm"
3-
version = "0.19.5"
3+
version = "0.19.6"
44
rust-version = "1.83.0"
55
edition = "2021"
66
authors = ["init4"]

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ Trevm is useful for:
2828
- searchers
2929
- any other transaction simulation usecase
3030

31+
## Note on Trevm Versioning
32+
33+
Trevm generally uses [semantic versioning](https://semver.org/). However, we
34+
also strive to indicate the MAJOR version of revm in the MINOR version of
35+
trevm. For example, trevm `0.19.x` SHOULD BE compatible with revm `19.x.x`. In
36+
general, we will try to maintain compatibility with the latest revm version,
37+
and will not backport trevm fixes to older trevm or revm versions. It is
38+
generally not advised to use old revm versions, as the EVM is a living spec.
39+
3140
## Limitations
3241

3342
Trevm is a work in progress and is not feature complete. In particular, trevm

src/fill/alloy.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl Block for alloy::consensus::Header {
236236
*basefee = self.base_fee_per_gas.map_or_else(Default::default, U256::from);
237237

238238
*difficulty = self.difficulty;
239-
*prevrandao = if self.difficulty.is_zero() { Some(self.mix_hash) } else { None };
239+
*prevrandao = Some(self.mix_hash);
240240

241241
if let Some(excess_blob_gas) = self.excess_blob_gas {
242242
block_env

0 commit comments

Comments
 (0)