+ added reverse block insertion
* handle downloading of blocks better when peer goes offline * bumped default disk allocation * added post request util
This commit is contained in:
parent
8e1b6e1e7e
commit
71007a2d0a
7 changed files with 106 additions and 37 deletions
|
|
@ -41,10 +41,12 @@ class Core:
|
|||
self.blockDataLocation = 'data/blocks/'
|
||||
self.addressDB = 'data/address.db'
|
||||
self.hsAdder = ''
|
||||
|
||||
self.bootstrapFileLocation = 'static-data/bootstrap-nodes.txt'
|
||||
self.bootstrapList = []
|
||||
self.requirements = onionrvalues.OnionrValues()
|
||||
self.torPort = torPort
|
||||
|
||||
self.usageFile = 'data/disk-usage.txt'
|
||||
|
||||
if not os.path.exists('data/'):
|
||||
os.mkdir('data/')
|
||||
|
|
@ -757,6 +759,7 @@ class Core:
|
|||
retData = self.setData(payload)
|
||||
self.addToBlockDB(retData, selfInsert=True, dataSaved=True)
|
||||
self.setBlockType(retData, meta['type'])
|
||||
self.daemonQueueAdd('uploadBlock', retData)
|
||||
|
||||
if retData != False:
|
||||
events.event('insertBlock', onionr = None, threaded = False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue