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

@@ -179,7 +179,7 @@ func TestSproutTransactionParser(t *testing.T) {
}
for i, tt := range zip143tests {
tx := newTransaction()
tx := NewTransaction()
rest, err := tx.ParseFromSlice(rawTxData[i])
if err != nil {
@@ -685,7 +685,7 @@ func TestSaplingTransactionParser(t *testing.T) {
}
for i, tt := range zip243tests {
tx := newTransaction()
tx := NewTransaction()
rest, err := tx.ParseFromSlice(rawTxData[i])
if err != nil {