parser: implement whole-block parsing and publicize constructors
This commit is contained in:
@@ -79,7 +79,7 @@ func (hdr *rawBlockHeader) MarshalBinary() ([]byte, error) {
|
||||
return backing[:SER_BLOCK_HEADER_SIZE], nil
|
||||
}
|
||||
|
||||
func newBlockHeader() *blockHeader {
|
||||
func NewBlockHeader() *blockHeader {
|
||||
return &blockHeader{
|
||||
rawBlockHeader: new(rawBlockHeader),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user