parser: implement whole-block parsing and publicize constructors

This commit is contained in:
George Tankersley
2018-09-28 00:52:40 +00:00
parent e3b5a9558d
commit 58e5f3e78b
6 changed files with 94 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ func TestBlockHeader(t *testing.T) {
continue
}
blockHeader := newBlockHeader()
blockHeader := NewBlockHeader()
_, err = blockHeader.ParseFromSlice(blockData)
if err != nil {
t.Error(err)