Block: Remove useless null check in writeTransactions().
@@ -304,13 +304,11 @@ public class Block extends Message {
return;
}
- if (transactions != null) {
stream.write(new VarInt(transactions.size()).encode());
for (Transaction tx : transactions) {
tx.bitcoinSerialize(stream);
}
}
- }
/**
* Special handling to check if we have a valid byte array for both header
