pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
64 stars 33 forks source link

[Utility][Persistence][Savepoints/Rollbacks] Implement change tracking in `UtilityUnitOfWork` to allow ephemeral state and remove side effects #564

Open deblasis opened 1 year ago

deblasis commented 1 year ago

Objective

Extend the UtilityUnitOfWork logic so that it transparently works like an ephemeral "WorldState" that becomes valid/persisted only when it's committed successfully. Until then, all changes are tracked, and applied in memory but NOT persisted.

Origin Document

562

Goals

Deliverable

Non-goals / Non-deliverables

General issue deliverables

Testing Methodology


Creator: @deblasis Co-Owners: @Olshansk

Olshansk commented 1 year ago

The goals make sense to me. Looking forward to seeing the design & implementation around the tree structures for this!