mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
lnwire+discovery: rename ShortChannelIDEncoding to QueryEncoding
Since the the encoding can be used for multiple different fields, we rename it here to be more generic.
This commit is contained in:
@@ -225,10 +225,10 @@ func TestWriteColorRGBA(t *testing.T) {
|
||||
|
||||
func TestWriteShortChanIDEncoding(t *testing.T) {
|
||||
buf := new(bytes.Buffer)
|
||||
data := ShortChanIDEncoding(1)
|
||||
data := QueryEncoding(1)
|
||||
expectedBytes := []byte{1}
|
||||
|
||||
err := WriteShortChanIDEncoding(buf, data)
|
||||
err := WriteQueryEncoding(buf, data)
|
||||
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, expectedBytes, buf.Bytes())
|
||||
|
Reference in New Issue
Block a user