diff --git a/bigchaindb/core.py b/bigchaindb/core.py index 3c62e65d..8ca25df8 100644 --- a/bigchaindb/core.py +++ b/bigchaindb/core.py @@ -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')