Skip to content

Commit 7eeb353

Browse files
committed
Reduce threshold for block validity
1 parent f45f22b commit 7eeb353

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ledger/block/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,6 @@ impl<N: Network> Block<N> {
159159
);
160160
}
161161

162-
// Ensure the block contains transactions.
163-
ensure!(
164-
!transactions.is_empty() || !aborted_transaction_ids.is_empty(),
165-
"Cannot create a block with zero transactions"
166-
);
167-
168162
// Ensure the number of transactions is within the allowed range.
169163
if transactions.len() > Transactions::<N>::MAX_TRANSACTIONS {
170164
bail!(

0 commit comments

Comments
 (0)