Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@

- [#5055](https://github.com/ChainSafe/forest/issues/5055) Fixed an issue where Forest fails on duplicate drand entries. This would only happen on new devnets.

- [#6103](https://github.com/ChainSafe/forest/pull/6103) Fixed `eth_getTransactionCount` to return the nonce of the requested tipset and not its parent.

## Forest v0.30.1 "Laurelin"

Mandatory release for mainnet node operators. It sets the NV27 _Golden Week_ network upgrade to epoch `5_348_280` which corresponds to `Wed 24 Sep 23:00:00 UTC 2025`. It also includes a few improvements that help with snapshot generation and inspection.
Expand Down
5 changes: 4 additions & 1 deletion src/rpc/methods/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,10 @@ impl RpcMethod<2> for EthGetTransactionCount {
block_param.clone(),
ResolveNullTipset::TakeOlder,
)?;
let state = StateTree::new_from_root(ctx.store_owned(), ts.parent_state())?;

let (state_cid, _) = ctx.state_manager.tipset_state(&ts).await?;

let state = StateTree::new_from_root(ctx.store_owned(), &state_cid)?;
let actor = state.get_required_actor(&addr)?;
if is_evm_actor(&actor.code) {
let evm_state = evm::State::load(ctx.store(), actor.code, actor.state)?;
Expand Down
2 changes: 1 addition & 1 deletion src/state_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl<DB> StateManager<DB>
where
DB: Blockstore + Send + Sync + 'static,
{
/// Returns the pair of (parent state root, message receipt root). This will
/// Returns the pair of (state root, message receipt root). This will
/// either be cached or will be calculated and fill the cache. Tipset
/// state for a given tipset is guaranteed not to be computed twice.
pub async fn tipset_state(self: &Arc<Self>, tipset: &Arc<Tipset>) -> anyhow::Result<CidPair> {
Expand Down
Loading