(height uint32)
| 485 | } |
| 486 | |
| 487 | func (this *BlockStore) getBlockHashKey(height uint32) []byte { |
| 488 | key := make([]byte, 5, 5) |
| 489 | key[0] = byte(scom.DATA_BLOCK) |
| 490 | binary.LittleEndian.PutUint32(key[1:], height) |
| 491 | return key |
| 492 | } |
| 493 | |
| 494 | func (this *BlockStore) getCurrentBlockKey() []byte { |
| 495 | return []byte{byte(scom.SYS_CURRENT_BLOCK)} |
no outgoing calls
no test coverage detected