silly me, missing type()

This commit is contained in:
Arinerron 2018-06-06 18:58:40 -07:00
parent 1a6fa19323
commit 0ca6480c79

View File

@ -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):