Closed edolstra closed 5 years ago
@edolstra we purposely stayed away from Serde and its automatic (and opaque) derivations, and I think this is important to stay away from a code that make automatic/opaque choice for us, since it does usually have a higher cost down the line
Also imhamt has an iterator, which I think should be enough to dump everything. probably a good idea to provide a from_iterator somewhere also.
This adds serialization/deserialization of
Ledger
using serde, which can be used by jormungandr to save/restore the chain state periodically.It also adds
PartialEq
andEq
toLedger
and its component types. This is only used by the tests to determine ifLedger
is restored correctly.