From 8292ef82fdd2ea2a383b4fa270e5d19ac0674673 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 10 Mar 2020 13:56:05 +0100 Subject: [PATCH] Fix chainparam in forceclose --- cmd/chantools/forceclose.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/chantools/forceclose.go b/cmd/chantools/forceclose.go index de8b823..4859a56 100644 --- a/cmd/chantools/forceclose.go +++ b/cmd/chantools/forceclose.go @@ -73,7 +73,10 @@ func forceCloseChannels(extendedKey *hdkeychain.ExtendedKey, return err } api := &btc.ExplorerAPI{BaseURL: cfg.APIURL} - signer := &btc.Signer{ExtendedKey: extendedKey} + signer := &btc.Signer{ + ExtendedKey: extendedKey, + ChainParams: chainParams, + } // Go through all channels in the DB, find the still open ones and // publish their local commitment TX.