lnwire: converge discovery part of messages with specification

Change the name of fields of messages which are belong to the discovery
subsystem in a such way so they were the same with the names that are
defined in the specification.
This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-03-29 19:49:05 -07:00
1 parent 54b3541707
commit c3b2854428
19 files changed
+163 -165

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@ import (
)
func TestChannelIDEncoding(t *testing.T) {
var testCases = []ChannelID{
var testCases = []ShortChannelID{
{
BlockHeight: (1 << 24) - 1,
TxIndex: (1 << 24) - 1,
@@ -29,7 +29,7 @@ func TestChannelIDEncoding(t *testing.T) {
for _, testCase := range testCases {
chanInt := testCase.ToUint64()
newChanID := NewChanIDFromInt(chanInt)
newChanID := NewShortChanIDFromInt(chanInt)
if !reflect.DeepEqual(testCase, newChanID) {
t.Fatalf("chan ID's don't match: expected %v got %v",