Fix packBlockInfo
parent
a4da2f3865
commit
1d0a985c9e
|
@ -1250,7 +1250,7 @@ func (d *RocksDB) packBlockInfo(block *BlockInfo) ([]byte, error) {
|
||||||
if len(b) > pl {
|
if len(b) > pl {
|
||||||
b = b[:pl]
|
b = b[:pl]
|
||||||
} else {
|
} else {
|
||||||
b = append(b, make([]byte, len(b)-pl)...)
|
b = append(b, make([]byte, pl-len(b))...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
packed = append(packed, b...)
|
packed = append(packed, b...)
|
||||||
|
|
Loading…
Reference in New Issue