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:
Olaoluwa Osuntokun committed 2017-04-16 15:23:45 -07:00
1 parent c06894a2e6
commit d17b11862b
5 files changed
+155 -137

No files matched your search

+3 -3
View File
@@ -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: