Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add
FlatStateDeltaMetadata::has_changes
(#10647)
This PR is a follow-up for [this comment](https://github.com/near/nearcore/pull/10608/files#r1499133795). This expresses the contract around `prev_block_with_changes` with a separate function since `prev_block_with_changes.is_none()` check is confusing ``` /// `None` if the block itself has flat state changes. /// `Some` if the block has no flat state changes, and contains /// info of the last block with some flat state changes. ```
- Loading branch information