MsgBlock.headerOnly constructor

MsgBlock.headerOnly({
  1. required BlockHeader header,
})

Creates a MsgBlock with header and no transactions.

Implementation

MsgBlock.headerOnly({
  required this.header,
}) : transactions = [];