mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-28 20:00:43 +00:00
* Simplify txFrame protocol, improve persist performance To prepare forked-layers for further surgery to avoid the nesting tax, the commit/rollback style of interacting must first be adjusted, since it does not provide a point in time where the frame is "done" and goes from being actively written to, to simply waiting to be persisted or discarded. A collateral benefit of this change is that the scheme removes some complexity from the process by moving the "last saved block number" into txframe along with the actual state changes thus reducing the risk that they go "out of sync" and removing the "commit" consolidation responsibility from ForkedChain. * commit/rollback become checkpoint/dispose - since these are pure in-memory constructs, there's less error handling and there's no real "rollback" involved - dispose better implies that the instance cannot be used and we can more aggressively clear the memory it uses * simplified block number handling that moves to become part of txFrame just like the data that the block number references * avoid reparenting step by replacing the base instead of keeping a singleton instance * persist builds the set of changes from the bottom which helps avoid moving changes in the top layers through each ancestor level of the frame stack * when using an in-memory database in tests, allow the instance to be passed around to enable testing persist and reload logic
18 lines
664 B
Markdown
18 lines
664 B
Markdown
TracerTests
|
|
===
|
|
## TracerTests
|
|
```diff
|
|
+ block46147.json OK
|
|
+ block46400.json OK
|
|
+ block46402.json OK
|
|
+ block47205.json OK
|
|
+ block48712.json OK
|
|
+ block48915.json OK
|
|
+ block49018.json OK
|
|
+ block97.json OK
|
|
```
|
|
OK: 8/8 Fail: 0/8 Skip: 0/8
|
|
|
|
---TOTAL---
|
|
OK: 8/8 Fail: 0/8 Skip: 0/8
|