Skip to content

Conversation

bhartnett
Copy link
Contributor

This fix is related to this issue: #3659

The problem was that the assertions in the Aristo mpt and kvt init_common modules assert that no nested db sessions can be created but when calling persist and supplying a stateroot, nested sessions do get created under certain conditions when using snapshots.

To prevent this scenario from occurring this PR moves the stateroot check outside of the call to persist.

@arnetheduck
Copy link
Member

/home/arnetheduck/status/nimbus-eth1/execution_chain/db/aristo/aristo_tx_frame.nim(16, 12) Warning: imported and not used: 'strformat' [UnusedImport]
/home/arnetheduck/status/nimbus-eth1/execution_chain/db/aristo/aristo_tx_frame.nim(16, 32) Warning: imported and not used: 'aristo_fetch' [UnusedImport]

@bhartnett bhartnett merged commit 4389469 into master Sep 13, 2025
44 of 45 checks passed
@bhartnett bhartnett deleted the move-stateroot-check branch September 13, 2025 11:51
@tersec
Copy link
Contributor

tersec commented Sep 16, 2025

/home/arnetheduck/status/nimbus-eth1/execution_chain/db/aristo/aristo_tx_frame.nim(16, 12) Warning: imported and not used: 'strformat' [UnusedImport]
/home/arnetheduck/status/nimbus-eth1/execution_chain/db/aristo/aristo_tx_frame.nim(16, 32) Warning: imported and not used: 'aristo_fetch' [UnusedImport]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants