mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 19:26:23 +02:00
tlv: Added bool to primitive
Signed-off-by: Ononiwu Maureen <amaka013@gmail.com>
This commit is contained in:
@@ -104,6 +104,11 @@ func MakePrimitiveRecord(typ Type, val interface{}) Record {
|
||||
decoder Decoder
|
||||
)
|
||||
switch e := val.(type) {
|
||||
case *bool:
|
||||
staticSize = 1
|
||||
encoder = EBool
|
||||
decoder = DBool
|
||||
|
||||
case *uint8:
|
||||
staticSize = 1
|
||||
encoder = EUint8
|
||||
|
Reference in New Issue
Block a user