lightninglabs / chantools

A loose collection of tools all somehow related to lnd and Lightning Network channels.
MIT License
222 stars 32 forks source link

chantools zombierecovery makeoffer #119

Closed wyssblitz closed 8 months ago

wyssblitz commented 8 months ago

chantools version v0.12.1

using channeltools to rescue 2 zombiechannels I use following command:

chantools zombierecovery makeoffer \ --node1_keys preparedkeys-xxxx-xx-xx-.json \ --node2_keys preparedkeys-xxxx-xx-xx-.json \ --feerate 40

as stated in the docs. The command was run an a raspi (RaspiBlitz) with 4G of RAM.

I receive following errormessage:

_Will send: 500000 sats to our address (bc1qxx) and 500000 sats to the other peer's address (bc1qxx).

Current tally (before fees): To our address (bc1qxx): 1000000 sats To their address (bc1qlxx): 1000000 sats Estimated fees (at rate 40 sat/vByte): 10620 sats Current tally (after fees): To our address (bc1qxx): 994690 sats To their address (bc1qxx): 994690 sats

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x316d0c]

goroutine 1 [running]: github.com/btcsuite/btcd/txscript.NewTxSigHashes(0x4000127998, {0x11057a0, 0x4000186188}) github.com/btcsuite/btcd@v0.23.5-0.20230905170901-80f5a0ffdf36/txscript/hashcache.go:243 +0x12c github.com/lightninglabs/chantools/lnd.(Signer).AddPartialSignature(0x0?, 0x4000127a18, {{0x2312ba5?, 0x13dea5f?}, 0x400056b680?}, 0x40000486e0, {0x4000586d70, 0x47, 0x47}, 0x0) github.com/lightninglabs/chantools/lnd/signer.go:154 +0x78 main.(zombieRecoveryMakeOfferCommand).Execute(0x40001a6c00, 0xa48680?, {0x4000017af0?, 0x4000017ac8?, 0x0?}) github.com/lightninglabs/chantools/cmd/chantools/zombierecoverymakeoffer.go:425 +0x1f3c github.com/spf13/cobra.(Command).execute(0x4000215b80, {0x400007e9c0, 0x6, 0x6}) github.com/spf13/cobra@v1.1.3/command.go:852 +0x554 github.com/spf13/cobra.(Command).ExecuteC(0x19d6f20) github.com/spf13/cobra@v1.1.3/command.go:960 +0x310 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.1.3/command.go:897 main.main() github.com/lightninglabs/chantools/cmd/chantools/root.go:137 +0x370

The error is can be reproduced on several machines.

guggero commented 8 months ago

Was the channel a Simple Taproot Channel? If yes, they aren't supported by chantools yet...