File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,6 @@ impl<N: Network> Block<N> {
125
125
transactions : Transactions < N > ,
126
126
aborted_transaction_ids : Vec < N :: TransactionID > ,
127
127
) -> Result < Self > {
128
- // Ensure the block contains transactions.
129
- ensure ! (
130
- !transactions. is_empty( ) || !aborted_transaction_ids. is_empty( ) ,
131
- "Cannot create a block with zero transactions"
132
- ) ;
133
-
134
128
// Ensure the number of transactions is within the allowed range.
135
129
if transactions. len ( ) > Transactions :: < N > :: MAX_TRANSACTIONS {
136
130
bail ! (
Original file line number Diff line number Diff line change @@ -389,9 +389,6 @@ impl<N: Network> Block<N> {
389
389
fn verify_transactions ( & self ) -> Result < ( ) > {
390
390
let height = self . height ( ) ;
391
391
392
- // Ensure there are transactions.
393
- ensure ! ( !self . transactions. is_empty( ) , "Block {height} must contain at least 1 transaction" ) ;
394
-
395
392
// Ensure the number of transactions is within the allowed range.
396
393
if self . transactions . len ( ) > Transactions :: < N > :: MAX_TRANSACTIONS {
397
394
bail ! (
You can’t perform that action at this time.
0 commit comments