()
| 96 | } |
| 97 | |
| 98 | func (n *blockNode) indexKey() (key []byte) { |
| 99 | key = make([]byte, hash.HashSize+4) |
| 100 | binary.BigEndian.PutUint32(key[0:4], uint32(n.height)) |
| 101 | copy(key[4:hash.HashSize+4], n.hash[:]) |
| 102 | return |
| 103 | } |
| 104 | |
| 105 | type blockIndex struct { |
| 106 | mu sync.RWMutex |
no outgoing calls