multi: stop casting peer warning messages as errors
Split the logic for processing `error` and `warning` messages from our peers.
This commit is contained in:
8 files changed
+282
-57
No files matched your search
@@ -774,6 +774,14 @@ func fundChannel(t *testing.T, alice, bob *testNode, localFundingAmt,
|
||||
// Forward the response to Alice.
|
||||
alice.fundingMgr.ProcessFundingMsg(acceptChannelResponse, bob)
|
||||
|
||||
// Check that sending warning messages does not abort the funding
|
||||
// process.
|
||||
warningMsg := &lnwire.Warning{
|
||||
Data: []byte("random warning"),
|
||||
}
|
||||
alice.fundingMgr.ProcessFundingMsg(warningMsg, bob)
|
||||
bob.fundingMgr.ProcessFundingMsg(warningMsg, alice)
|
||||
|
||||
// Alice responds with a FundingCreated message.
|
||||
fundingCreated := assertFundingMsgSent(
|
||||
t, alice.msgChan, "FundingCreated",
|
||||
|
||||
Reference in new issue
Block a user