This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chain): Fake FinalizeBlock in PrepareProposal (#1272)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit Refactor: - Removed the "statedb" field from the "blockchain" struct in `eth/core/chain.go`, indicating a refactoring of state management functionality. - Updated `eth/core/chain_writer.go` to create a new `state.StateDB` object within `WriteGenesisBlock` and `InsertBlockAndSetHead` functions, enhancing the modularity of state management. - Modified `WriteBlockAndSetHead` and `writeBlockWithState` functions to accept a `state.StateDB` parameter, improving the flexibility of state changes commitment. These changes streamline the state management process, potentially improving the performance and maintainability of the code. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information