2
0
mirror of https://github.com/guggero/chantools synced 2024-11-11 01:10:42 +00:00

Fix chainparam in forceclose

This commit is contained in:
Oliver Gugger 2020-03-10 13:56:05 +01:00
parent 4f099e6e51
commit 8292ef82fd
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

View File

@ -73,7 +73,10 @@ func forceCloseChannels(extendedKey *hdkeychain.ExtendedKey,
return err return err
} }
api := &btc.ExplorerAPI{BaseURL: cfg.APIURL} 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 // Go through all channels in the DB, find the still open ones and
// publish their local commitment TX. // publish their local commitment TX.