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

@@ -394,7 +394,7 @@ func (tx *transaction) ParseFromSlice(data []byte) ([]byte, error) {
return []byte(s), nil
}
func newTransaction() *transaction {
func NewTransaction() *transaction {
return &transaction{
rawTransaction: new(rawTransaction),
}