From 66189f1a21813bd505635c0124e0b2d2b14ee40d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 5 Apr 2019 16:07:54 -0700 Subject: [PATCH 1/2] lnd: increase neutrino ban duration to 48hrs from 5s In this commit, we fix an oversight that overrode the default ban duration for neutrino to 5s from the default 24 hrs. We correct this by raising the ban duration to 48hrs. In the future in order to ignore these peers persistently, we'll need to start to persist our ban list. However that's a change for another time. --- chainregistry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chainregistry.go b/chainregistry.go index 55fba4f3..31fe561c 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -722,7 +722,7 @@ func initNeutrinoBackend(chainDir string) (*neutrino.ChainService, func(), error } neutrino.MaxPeers = 8 - neutrino.BanDuration = 5 * time.Second + neutrino.BanDuration = time.Hour * 48 neutrinoCS, err := neutrino.NewChainService(config) if err != nil { From 66754b6e71e444cdd7c15201540a649ec5128c5b Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 9 Apr 2019 19:56:25 -0700 Subject: [PATCH 2/2] build: update to latest btcd with connmgr bug fix --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 66a56b99..d124f333 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/NebulousLabs/go-upnp v0.0.0-20180202185039-29b680b06c82 github.com/Yawning/aez v0.0.0-20180114000226-4dad034d9db2 github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect - github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32 + github.com/btcsuite/btcd v0.0.0-20190410025418-9bfb2ca0346b github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f github.com/btcsuite/btcutil v0.0.0-20190316010144-3ac1210f4b38 github.com/btcsuite/btcwallet v0.0.0-20190327034548-8b90263a6190 diff --git a/go.sum b/go.sum index 4e92192d..86f443bd 100644 --- a/go.sum +++ b/go.sum @@ -16,6 +16,8 @@ github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx2 github.com/btcsuite/btcd v0.0.0-20180823030728-d81d8877b8f3/go.mod h1:Dmm/EzmjnCiweXmzRIAiUWCInVmPgjkzgv5k4tVyXiQ= github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32 h1:qkOC5Gd33k54tobS36cXdAzJbeHaduLtnLQQwNoIi78= github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= +github.com/btcsuite/btcd v0.0.0-20190410025418-9bfb2ca0346b h1:7J7sEce3LgtbMgs7PKcN61gF3b4txM6SjaRoJTSk640= +github.com/btcsuite/btcd v0.0.0-20190410025418-9bfb2ca0346b/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= github.com/btcsuite/btcutil v0.0.0-20180706230648-ab6388e0c60a/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=