Closed qzhodl closed 4 months ago
Try to fix https://github.com/ethstorage/es-node/issues/186.
The root cause is lastKvIdx is less than the first index of the current shard, which leads to the download end being less than the download first, As a result, when end - first is calculated, an underflow occurs.
lastKvIdx
end
first
end - first
Try to fix https://github.com/ethstorage/es-node/issues/186.
The root cause is
lastKvIdx
is less than the first index of the current shard, which leads to the downloadend
being less than the downloadfirst
, As a result, whenend - first
is calculated, an underflow occurs.