Closed
Description
Is the traproot-assets channel available on the regtest network?
When I close a traproot-assets channel on regtest it always causes a node to crash.
environment
litd v0.13.991
unbuntu22.4
regtest
Steps to reproduce
I created two nodes, issued an asset and opened a channel to the traproot-assets. Pay an invoice. When I close the channel, the node receiving the asset closes unexpectedly.
Expected behavior
The channel should close properly and both nodes should be able to settle assets properly.
Actual behavior
The node receiving the asset had a null pointer error and shut down.
2024-08-02 14:19:29.058 [INF] TCHN: Importing 1 proofs for ChannelPoint(9b90cb3471a6803674a2610633259e63b6d2edcb7da6002520ddc8e2e7f5a4b4:0)
2024-08-02 14:19:29.059 [INF] TCHN: Fetching funding input proof, locator=(proof.Locator) {
AssetID: (*asset.ID)(0xc00449d914)((len=32 cap=32) f001e292466329f02ad3107cb0957b484728ef4afc79add058e7162ec9c3a002),
GroupKey: (*secp256k1.PublicKey)(<nil>),
ScriptKey: (secp256k1.PublicKey) {
x: (secp256k1.FieldVal) 2a485499916e3ad2d092c99639577d1e395b3c74f88df88931d40eed19095904,
y: (secp256k1.FieldVal) 6679a1b3104ed855afe9fbdc47f17d5cf5dcdcfd2cf91db04e037a02be403c24
},
OutPoint: (*wire.OutPoint)(0xc00449d8f0)(c021ffde9b1fa9b58c5024ee7a4861b4e70806b1895dd4f528f79a1f756fb728:0)
}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4797da]
goroutine 3752 [running]:
github.com/lightninglabs/taproot-assets/proof.deriveSenderStreamID({0x0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...})
github.com/lightninglabs/taproot-assets@v0.4.1/proof/courier.go:451 +0x6f
github.com/lightninglabs/taproot-assets/proof.(*HashMailCourier).ReceiveProof(0xc000af3bc0, {0x38648e0, 0x4d4ef60}, {0xc00449d914, 0x0, {{{0x1095904, 0x103bb46, 0x388931d, 0x1d3e237, 0x2395b3c, ...}}, ...}, ...})
github.com/lightninglabs/taproot-assets@v0.4.1/proof/courier.go:947 +0x86
github.com/lightninglabs/taproot-assets/tapchannel.importOutputProofs({0x46aa3a8?, 0xc0?, 0xa3a8?}, {0xc00099ce00, 0x1, 0x7ee7?}, 0x8000?, {0x384bc20?, 0xc000a12458?}, {0x38788a0, ...}, ...)
github.com/lightninglabs/taproot-assets@v0.4.1/tapchannel/aux_sweeper.go:811 +0x52f
github.com/lightninglabs/taproot-assets/tapchannel.(*AuxChanCloser).FinalizeClose(_, {{{{0xb4, 0xa4, 0xf5, 0xe7, 0xe2, 0xc8, 0xdd, 0x20, 0x25, ...}, ...}, ...}, ...}, ...)
github.com/lightninglabs/taproot-assets@v0.4.1/tapchannel/aux_closer.go:663 +0x1e7
github.com/lightninglabs/taproot-assets.(*Server).FinalizeClose(_, {{{{0xb4, 0xa4, 0xf5, 0xe7, 0xe2, 0xc8, 0xdd, 0x20, 0x25, ...}, ...}, ...}, ...}, ...)
github.com/lightninglabs/taproot-assets@v0.4.1/server.go:1081 +0x285
github.com/lightningnetwork/lnd/lnwallet/chancloser.(*ChanCloser).ReceiveClosingSigned.func2({0x385ea30, 0xc000184190})
github.com/lightningnetwork/lnd@v0.18.0-beta.rc4.0.20240723043204-f09d4042aee4/lnwallet/chancloser/chancloser.go:997 +0x385
github.com/lightningnetwork/lnd/fn.MapOptionZ[...](...)
github.com/lightningnetwork/lnd/fn@v1.1.0/option.go:174
github.com/lightningnetwork/lnd/lnwallet/chancloser.(*ChanCloser).ReceiveClosingSigned(_, {{0xb4, 0xa4, 0xf5, 0xe7, 0xe2, 0xc8, 0xdd, 0x20, 0x25, ...}, ...})
github.com/lightningnetwork/lnd@v0.18.0-beta.rc4.0.20240723043204-f09d4042aee4/lnwallet/chancloser/chancloser.go:978 +0x1210
github.com/lightningnetwork/lnd/peer.(*Brontide).handleCloseMsg(0xc00282a008, 0xc0045a47b0)
github.com/lightningnetwork/lnd@v0.18.0-beta.rc4.0.20240723043204-f09d4042aee4/peer/brontide.go:3989 +0x3a7
github.com/lightningnetwork/lnd/peer.(*Brontide).channelManager(0xc00282a008)
github.com/lightningnetwork/lnd@v0.18.0-beta.rc4.0.20240723043204-f09d4042aee4/peer/brontide.go:2701 +0x36f
created by github.com/lightningnetwork/lnd/peer.(*Brontide).Start in goroutine 3811
github.com/lightningnetwork/lnd@v0.18.0-beta.rc4.0.20240723043204-f09d4042aee4/peer/brontide.go:834 +0xced
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done