feat: Improved debug messages for block ids
This commit is contained in:
parent
0d6ff2cf96
commit
f2943c6809
@ -49,3 +49,14 @@ const (
|
|||||||
Empty BlockID = iota
|
Empty BlockID = iota
|
||||||
Generic
|
Generic
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func (id BlockID) String() string {
|
||||||
|
switch id {
|
||||||
|
case Empty:
|
||||||
|
return "Empty"
|
||||||
|
case Generic:
|
||||||
|
return "Generic"
|
||||||
|
default:
|
||||||
|
panic(fmt.Sprintf("Unknown block id: %v", uint8(id)))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user