Mintlayer Core: The central repository housing the essential components to operate a Mintlayer node. It encompasses the node and wallet functionalities necessary for seamless operation, alongside an additional API server designed to facilitate applications.
Currently both PoSAccountingDelta and PoSAccountingDB implement PoSAccountingOperations trait which ends up in double the implementation code and tests as well as ugly enum for undo which we have to match on execution and panic if an arm is wrong.
I think that it's enough to keep only Delta implement this trait.
Also InMemoryTokensAccounting doesn't have to implement TokensAccountingView.
Currently both
PoSAccountingDelta
andPoSAccountingDB
implementPoSAccountingOperations
trait which ends up in double the implementation code and tests as well as ugly enum for undo which we have to match on execution and panic if an arm is wrong. I think that it's enough to keep only Delta implement this trait.Also
InMemoryTokensAccounting
doesn't have to implementTokensAccountingView
.