parser: implement whole-block parsing and publicize constructors
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user