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