mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 03:54:26 +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:
@@ -205,9 +205,8 @@ func WriteColorRGBA(buf *bytes.Buffer, e color.RGBA) error {
|
||||
return WriteUint8(buf, e.B)
|
||||
}
|
||||
|
||||
// WriteShortChanIDEncoding appends the ShortChanIDEncoding to the provided
|
||||
// buffer.
|
||||
func WriteShortChanIDEncoding(buf *bytes.Buffer, e ShortChanIDEncoding) error {
|
||||
// WriteQueryEncoding appends the QueryEncoding to the provided buffer.
|
||||
func WriteQueryEncoding(buf *bytes.Buffer, e QueryEncoding) error {
|
||||
return WriteUint8(buf, uint8(e))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user