sync improvements, bug fixes, config changes
This commit is contained in:
parent
e34c08b036
commit
638436ee10
@ -65,7 +65,9 @@ class DaemonTools:
|
||||
|
||||
def cleanOldBlocks(self):
|
||||
'''Delete old blocks if our disk allocation is full/near full'''
|
||||
if self.daemon._core._utils.storageCounter.isFull():
|
||||
|
||||
|
||||
while self.daemon._core._utils.storageCounter.isFull():
|
||||
oldest = self.daemon._core.getBlockList[0]
|
||||
self.daemon._core._blacklist.addToDB(oldest)
|
||||
self.daemon._core.removeBlock(oldest)
|
||||
logger.info('Deleted block: %s' % (oldest,))
|
||||
self.daemon.decrementThreadCount('cleanOldBlocks')
|
Loading…
Reference in New Issue
Block a user