mirror of https://github.com/BTCPrivate/lnd.git
9777176d7d
This commit fixes a lingering bug that could at times cause incompatibilities with other implementations when attempting a cooperative channel close. Before this commit, we would use a pointer to the funding txin everywhere. As a result, each time we made a new state, or verified one, we would modify the sequence field of the main txin of the commitment transaction. Due to this if we updated the channel, then went to do a cooperative channel closure, the sequence of the txin would still be set to the value we used as the state hint. To remedy this, we now copy the txin each time when making the commitment transaction, and also the cooperative closure transaction. This avoids accidentally mutating the txin itself. Fixes #502. |
||
---|---|---|
.. | ||
circuit.go | ||
circuit_test.go | ||
failure.go | ||
interfaces.go | ||
iterator.go | ||
link.go | ||
link_test.go | ||
log.go | ||
mailbox.go | ||
mailbox_test.go | ||
mock.go | ||
packet.go | ||
queue.go | ||
queue_test.go | ||
switch.go | ||
switch_test.go | ||
test_utils.go |