Misc changes

This commit is contained in:
Arinerron 2018-09-26 17:40:02 -07:00
parent 3711b02924
commit 0c9847fbec
10 changed files with 64 additions and 13 deletions

View file

@ -644,7 +644,7 @@ class Core:
conn.close()
return True
def insertBlock(self, data, header='txt', sign=False, encryptType='', symKey='', asymPeer='', meta = None):
def insertBlock(self, data, header='txt', sign=False, encryptType='', symKey='', asymPeer='', meta = dict()):
'''
Inserts a block into the network
encryptType must be specified to encrypt a block
@ -663,9 +663,6 @@ class Core:
with open(self.dataNonceFile, 'a') as nonceFile:
nonceFile.write(dataNonce + '\n')
if meta is None:
meta = dict()
if type(data) is bytes:
data = data.decode()
data = str(data)