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
2017-03-27 18:22:37 +03:00
committed by Olaoluwa Osuntokun
parent 54b3541707
commit c3b2854428
19 changed files with 163 additions and 165 deletions

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",