payload: fix wrong stringer impl for InventoryType

This commit is contained in:
Roman Khimov 2019-08-29 20:14:16 +03:00
parent f636bb9b6e
commit 6cf74e2d83

View file

@ -16,9 +16,9 @@ type InventoryType uint8
func (i InventoryType) String() string { func (i InventoryType) String() string {
switch i { switch i {
case 0x01: case 0x01:
return "block"
case 0x02:
return "TX" return "TX"
case 0x02:
return "block"
case 0xe0: case 0xe0:
return "consensus" return "consensus"
default: default: