add routine to tag miners peer IDs as high value in connection manager

This commit is contained in:
whyrusleeping
2019-12-16 22:51:41 -08:00
parent 28b470cb0d
commit 022581d50b
9 changed files with 140 additions and 15 deletions
+2
View File
@@ -40,6 +40,7 @@ import (
"github.com/filecoin-project/lotus/node/modules/helpers"
"github.com/filecoin-project/lotus/node/modules/lp2p"
"github.com/filecoin-project/lotus/node/modules/testing"
"github.com/filecoin-project/lotus/node/peers"
"github.com/filecoin-project/lotus/node/repo"
"github.com/filecoin-project/lotus/paych"
"github.com/filecoin-project/lotus/peermgr"
@@ -234,6 +235,7 @@ func Online() Option {
Override(new(*paych.Store), paych.NewStore),
Override(new(*paych.Manager), paych.NewManager),
Override(new(*market.FundMgr), market.NewFundMgr),
Override(new(*peers.PeerTagger), lp2p.TagMiners),
),
// Storage miner