lnwallet+funding: include node net address in reservation workflow
This commit modifies the existing channel reservation workflow slightly to thread through the IP address that we were able to reach the node at, or the one which the node reached us via. Additionally, rather than using OpenChannel.FullSync() at the end of the reservation workflow, we now use OpenChannel.FullSyncWithAddr() in order to create the relationship in the database between the channel, and the p2p node we created the channel with. All tests, as well as a portion of the fundingManager have been updated accordingly,
This commit is contained in:
4 files changed
+52
-39
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package lnwallet
|
||||
|
||||
import (
|
||||
"net"
|
||||
"sync"
|
||||
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
@@ -114,6 +115,7 @@ type ChannelReservation struct {
|
||||
theirContribution *ChannelContribution
|
||||
|
||||
partialState *channeldb.OpenChannel
|
||||
nodeAddr *net.TCPAddr
|
||||
|
||||
// The ID of this reservation, used to uniquely track the reservation
|
||||
// throughout its lifetime.
|
||||
|
||||
Reference in new issue
Block a user