public override void BitcoinSerializeToStream(Stream stream)
{
WriteHeader(stream);
// We may only have enough data to write the header.
if (Transactions == null) return;
stream.Write(new VarInt((ulong) Transactions.Count).Encode());
foreach (var tx in Transactions)
{
tx.BitcoinSerializeToStream(stream);
}
}