Closed dan-da closed 2 years ago
This moves all "extra" functionality into a new module "mock" with a corresponding feature flag and its own Error enum.
The moved items are:
GenesisBuilderMock --> mock::GenesisBuilder SpentbookNodeMock --> mock::SpentbookNode SimpleKeyManager --> mock::KeyManager SimpleSigner --> mock::Signer
This makes the core library leaner, meaner and easier to audit/review/understand.
It also makes it extra clear what is mock functionality when using the lib. eg, in test cases, mint-repl or sn_dbc_examples.
Cargo changes:
Code changes:
note: cargo tests are failing. Once #168 is merged, I will rebase this on top.
rebased on latest master. I will merge it once CI tests pass.
This moves all "extra" functionality into a new module "mock" with a corresponding feature flag and its own Error enum.
The moved items are:
This makes the core library leaner, meaner and easier to audit/review/understand.
It also makes it extra clear what is mock functionality when using the lib. eg, in test cases, mint-repl or sn_dbc_examples.
Cargo changes:
Code changes: