mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Changed 'len(validated_transactions) == 0' to 'not validated_transactions' as suggested by @amirelemam in #762
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user