StringShort returns a shortened string representation of the block.
()
| 210 | |
| 211 | // StringShort returns a shortened string representation of the block. |
| 212 | func (b *Block) StringShort() string { |
| 213 | if b == nil { |
| 214 | return "nil-Block" |
| 215 | } |
| 216 | return fmt.Sprintf("Block#%X", b.Hash()) |
| 217 | } |
| 218 | |
| 219 | // ToProto converts Block to protobuf |
| 220 | func (b *Block) ToProto() (*tmproto.Block, error) { |