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:
parent
e253ca015f
commit
b10b03e3ca
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user