fundingmanager: change funding messages to use server.sendToPeer
Previously, during the channel funding process, peers sent wire messages using peer.queueMsg. By switching to server.sendToPeer, the fundingManager is more resilient to network connection issues or system restarts during the funding process. With server.sendToPeer, if a peer gets disconnected, the daemon can attempt to reconnect and continue the process using the peer’s public key ID.
This commit is contained in:
1 parent
69faebfcae
commit
b21bd351e8
7 files changed
+923
-680
No files matched your search
+7
-9
@@ -372,18 +372,16 @@ message PendingChannelRequest {
|
||||
}
|
||||
message PendingChannelResponse {
|
||||
message PendingChannel {
|
||||
int32 peer_id = 1;
|
||||
string identity_key = 1;
|
||||
string channel_point = 2;
|
||||
|
||||
string identity_key = 2;
|
||||
string channel_point = 3;
|
||||
int64 capacity = 3;
|
||||
int64 local_balance = 4;
|
||||
int64 remote_balance = 5;
|
||||
|
||||
int64 capacity = 4;
|
||||
int64 local_balance = 5;
|
||||
int64 remote_balance = 6;
|
||||
string closing_txid = 6;
|
||||
|
||||
string closing_txid = 7;
|
||||
|
||||
ChannelStatus status = 8;
|
||||
ChannelStatus status = 7;
|
||||
}
|
||||
|
||||
repeated PendingChannel pending_channels = 1;
|
||||
|
||||
Reference in new issue
Block a user