silly me, missing type()
parent
1a6fa19323
commit
0ca6480c79
|
@ -263,7 +263,7 @@ class Block:
|
||||||
- (Block): the Block's parent
|
- (Block): the Block's parent
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if self.parent == str:
|
if type(self.parent) == str:
|
||||||
if self.parent == self.getHash():
|
if self.parent == self.getHash():
|
||||||
self.parent = self
|
self.parent = self
|
||||||
elif Block.exists(self.parent):
|
elif Block.exists(self.parent):
|
||||||
|
|
Loading…
Reference in New Issue