mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
Fix LazyChunkReader slice bounds out of range error
This commit is contained in:
parent
f43390f5af
commit
b5a174a9e7
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ func (self *LocalStore) Put(chunk *Chunk) {
|
||||||
c := &Chunk{
|
c := &Chunk{
|
||||||
Key: Key(append([]byte{}, chunk.Key...)),
|
Key: Key(append([]byte{}, chunk.Key...)),
|
||||||
SData: append([]byte{}, chunk.SData...),
|
SData: append([]byte{}, chunk.SData...),
|
||||||
|
Size: chunk.Size,
|
||||||
dbStored: chunk.dbStored,
|
dbStored: chunk.dbStored,
|
||||||
}
|
}
|
||||||
self.memStore.Put(c)
|
self.memStore.Put(c)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue