Consensus filter

This commit is contained in:
Łukasz Magiera
2020-08-06 03:16:39 +02:00
parent 6b8f27264b
commit f8b8ecc0c3
9 changed files with 153 additions and 5 deletions
+5
View File
@@ -3,6 +3,7 @@ package modules
import (
"bytes"
"context"
"github.com/filecoin-project/lotus/chain/gen/slashfilter"
"github.com/ipfs/go-bitswap"
"github.com/ipfs/go-bitswap/network"
@@ -167,3 +168,7 @@ func NewSyncer(lc fx.Lifecycle, sm *stmgr.StateManager, bsync *blocksync.BlockSy
})
return syncer, nil
}
func NewSlashFilter(ds dtypes.MetadataDS) *slashfilter.SlashFilter {
return slashfilter.New(ds)
}