silly me, missing type()

master
Arinerron 2018-06-06 18:58:40 -07:00
parent 1a6fa19323
commit 0ca6480c79
1 changed files with 1 additions and 1 deletions

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