[wip] Attempt to remove genesis block

This commit is contained in:
vrde 2016-07-13 17:54:16 +02:00
parent 73d6add36f
commit e9b4b99946
No known key found for this signature in database
GPG Key ID: 6581C7C39B3D397D

View File

@ -598,8 +598,7 @@ class Bigchain(object):
.order_by(r.desc(r.row['block']['timestamp'])) \
.run(self.conn)
if unvoted and util.is_genesis_block(unvoted[0]):
unvoted.pop(0)
unvoted = filter(lambda block: not util.is_genesis_block(block), unvoted)
return unvoted