add prover to fullnode and miner builders

This commit is contained in:
Anton Evangelatov 2021-06-04 16:26:32 +02:00
parent d9a7348ae1
commit 6f125cc129
2 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ var ChainNode = Options(
// Consensus: crypto dependencies // Consensus: crypto dependencies
Override(new(ffiwrapper.Verifier), ffiwrapper.ProofVerifier), Override(new(ffiwrapper.Verifier), ffiwrapper.ProofVerifier),
Override(new(ffiwrapper.Prover), ffiwrapper.ProofProver),
// Consensus: VM // Consensus: VM
Override(new(vm.SyscallBuilder), vm.Syscalls), Override(new(vm.SyscallBuilder), vm.Syscalls),

View File

@ -74,6 +74,7 @@ func ConfigStorageMiner(c interface{}) Option {
// Sector storage: Proofs // Sector storage: Proofs
Override(new(ffiwrapper.Verifier), ffiwrapper.ProofVerifier), Override(new(ffiwrapper.Verifier), ffiwrapper.ProofVerifier),
Override(new(ffiwrapper.Prover), ffiwrapper.ProofProver),
Override(new(storage2.Prover), From(new(sectorstorage.SectorManager))), Override(new(storage2.Prover), From(new(sectorstorage.SectorManager))),
// Sealing (todo should be under EnableSealing, but storagefsm is currently bundled with storage.Miner) // Sealing (todo should be under EnableSealing, but storagefsm is currently bundled with storage.Miner)