mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-03-03 19:43:48 +00:00
core: drop redundant tgtBlock normalization
It's there since 423c7883b8
, but looks like it
never changed anything, the same thing is done six lines above and tgtBlock is
not changed since.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
c53b0645bb
commit
7d89a53043
1 changed files with 0 additions and 2 deletions
|
@ -1144,8 +1144,6 @@ func (bc *Blockchain) tryRunGC(oldHeight uint32) time.Duration {
|
|||
oldHeight /= bc.config.Ledger.GarbageCollectionPeriod
|
||||
newHeight /= bc.config.Ledger.GarbageCollectionPeriod
|
||||
if tgtBlock > int64(bc.config.Ledger.GarbageCollectionPeriod) && newHeight != oldHeight {
|
||||
tgtBlock /= int64(bc.config.Ledger.GarbageCollectionPeriod)
|
||||
tgtBlock *= int64(bc.config.Ledger.GarbageCollectionPeriod)
|
||||
dur = bc.stateRoot.GC(uint32(tgtBlock), bc.store)
|
||||
dur += bc.removeOldTransfers(uint32(tgtBlock))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue