Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close on non-NORMAL channel causes assert #82

Closed
rustyrussell opened this issue Nov 10, 2016 · 1 comment · Fixed by #121
Closed

close on non-NORMAL channel causes assert #82

rustyrussell opened this issue Nov 10, 2016 · 1 comment · Fixed by #121

Comments

@rustyrussell
Copy link
Contributor

From @cedcker comment in #67

https://gist.github.com/anonymous/251ce28774d9f0c094a5dbe06388b6bb

Turns out it was a bit different. calling close on a channel that is neither in STATE_NORMAL nor STATE_NORMAL_COMMITTING will trigger an assertion and fault our client. But it seems that we are conflating connection state and channel state in a few places.

@fivepiece
Copy link

Might be related, running two local nodes on regetst, accidentally tried to open a channel with a transaction that's not in the chain (sent the funds to the address in testnet by mistake), now both nodes are staying connected to each other, and the states are both :
STATE_OPEN_WAIT_ANCHORDEPTH_AND_THEIRCOMPLETE (but the anchor tx was never accepted to regtest nodes' mempool).
Trying to connect again returns Already connected to peer .., and trying to close the channel actually results in a Fatal signal 6. Log dumped in crash.log.

log files are at: logs
The prefixes mean: oc = open channel, ac = accept channel.
I was thinking at first if there's a way to proceed from that state somehow, but now I think there probably isn't because anchor_inputs and anchors are set for this specific invalid tx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants