lnwire: add warning message wrapping existing Error message structure

This commit adds Warning messages to lnwire, as introduced in bolts/950.
It does not include reading/writing of warning messages, which will be
covered in followup commits.
This commit is contained in:
Carla Kirk-Cohen
2022-05-16 12:07:48 -04:00
parent 04fb034259
commit f5ef4992e0
3 changed files with 34 additions and 1 deletions

View File

@@ -964,6 +964,12 @@ func TestLightningWireProtocol(t *testing.T) {
return mainScenario(&m)
},
},
{
msgType: MsgWarning,
scenario: func(m Warning) bool {
return mainScenario(&m)
},
},
{
msgType: MsgError,
scenario: func(m Error) bool {