|
|
@ -3,6 +3,7 @@ package types |
|
|
|
import ( |
|
|
|
"bytes" |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
|
|
|
|
abci "github.com/tendermint/abci/types" |
|
|
|
"github.com/tendermint/go-wire/data" |
|
|
@ -19,6 +20,10 @@ func (tx Tx) Hash() []byte { |
|
|
|
return merkle.SimpleHashFromBinary(tx) |
|
|
|
} |
|
|
|
|
|
|
|
func (tx Tx) String() string { |
|
|
|
return fmt.Sprintf("Tx{%X}") |
|
|
|
} |
|
|
|
|
|
|
|
type Txs []Tx |
|
|
|
|
|
|
|
func (txs Txs) Hash() []byte { |
|
|
|