(startHeight uint32)
| 504 | } |
| 505 | |
| 506 | func (this *BlockStore) getHeaderIndexListKey(startHeight uint32) []byte { |
| 507 | sink := common.NewZeroCopySink(nil) |
| 508 | sink.WriteByte(byte(scom.IX_HEADER_HASH_LIST)) |
| 509 | sink.WriteUint32(startHeight) |
| 510 | return sink.Bytes() |
| 511 | } |
| 512 | |
| 513 | func (this *BlockStore) getStartHeightByHeaderIndexKey(key []byte) (uint32, error) { |
| 514 | reader := bytes.NewReader(key[1:]) |
no test coverage detected