mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-28 01:56:52 +02:00
lnwire: convert ErrorGeneric to Error
With this change we move one step closer to matching the wire protocol currently defined within the spec.
This commit is contained in:
@@ -49,7 +49,7 @@ const (
|
||||
CmdRevokeAndAck = uint32(2010)
|
||||
|
||||
// Commands for reporting protocol errors.
|
||||
CmdErrorGeneric = uint32(4000)
|
||||
CmdError = uint32(4000)
|
||||
|
||||
// Commands for discovery service.
|
||||
CmdChannelAnnouncement = uint32(5000)
|
||||
@@ -119,8 +119,8 @@ func makeEmptyMessage(command uint32) (Message, error) {
|
||||
msg = &CommitSig{}
|
||||
case CmdRevokeAndAck:
|
||||
msg = &RevokeAndAck{}
|
||||
case CmdErrorGeneric:
|
||||
msg = &ErrorGeneric{}
|
||||
case CmdError:
|
||||
msg = &Error{}
|
||||
case CmdChannelAnnouncement:
|
||||
msg = &ChannelAnnouncement{}
|
||||
case CmdChannelUpdateAnnouncement:
|
||||
|
Reference in New Issue
Block a user