bosnet / sebak

SEBAK, the next BOScoin Blockchain
https://devteam.blockchainos.org
GNU General Public License v3.0
44 stars 15 forks source link

`SavingBlockOperations.Check()` takes too long at startup #847

Closed spikeekips closed 5 years ago

spikeekips commented 5 years ago

The elapsed time for SavingBlockOperations.Check() will be growing by growing block height.

Geod24 commented 5 years ago

How long does it take currently ? (And for how many blocks)

spikeekips commented 5 years ago

Current impl checks the stored blocks sequencially, naturally we can expect so long time as blocks are growing. :)

Geod24 commented 5 years ago

I understand there's a linear grow, I just wanted an estimation of the time it takes (let's say per 1k blocks).

spikeekips commented 5 years ago

@Geod24 I didn’t estimate, but I know it will be headache :) We can estimate it.

spikeekips commented 5 years ago

In 70000 height, it took almost over 1 minutes.