go-iost
go-iost copied to clipboard
blockType goes with NORMAL when unset
https://github.com/iost-official/go-iost/blob/e07f6d747447f423d95b508a2e1d6aeee223e8b0/core/block/pb/block.proto#L7-L10
it either should include UNSET
etc or done with oneof
. Latter case could be done completely different so you'll have two different classes intead of switch-case
stuff
so If oneof
is not used this switch will have default case
https://github.com/iost-official/go-iost/blob/18e0b524a5936dd1bc6c118357921ec495418b71/core/block/block.go#L183