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
2017-04-16 15:23:40 -07:00
parent c06894a2e6
commit d17b11862b
5 changed files with 155 additions and 137 deletions

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: