work on pm and gui improvements & some bug fixes
This commit is contained in:
parent
3a2efce637
commit
a3aa8e3ae6
5 changed files with 101 additions and 21 deletions
|
@ -513,3 +513,17 @@ class Core:
|
|||
conn.close()
|
||||
|
||||
return
|
||||
|
||||
def insertBlock(self, data, header='txt'):
|
||||
'''
|
||||
Inserts a block into the network
|
||||
'''
|
||||
retData = ''
|
||||
if len(data) == 0:
|
||||
logger.error('Will not insert empty block')
|
||||
else:
|
||||
addedHash = self.setData('-' + header + '-' + data)
|
||||
self.addToBlockDB(addedHash, selfInsert=True)
|
||||
self.setBlockType(addedHash, header)
|
||||
retData = addedHash
|
||||
return retData
|
Loading…
Add table
Add a link
Reference in a new issue