1
0
mirror of https://github.com/bigchaindb/bigchaindb.git synced 2024-06-23 17:56:41 +02:00

Changed 'len(validated_transactions) == 0' to 'not validated_transactions' as suggested by @amirelemam in #762

This commit is contained in:
Troy McConaghy 2017-01-22 13:47:48 +01:00
parent e253ca015f
commit b10b03e3ca

View File

@ -455,7 +455,7 @@ class Bigchain(object):
Block: created block.
"""
# Prevent the creation of empty blocks
if len(validated_transactions) == 0:
if not validated_transactions:
raise exceptions.OperationError('Empty block creation is not '
'allowed')