/tx returns tx bytes

This commit is contained in:
Ethan Buchman
2017-04-12 18:18:17 -04:00
parent 7fbe8e47d4
commit 2a59cda77e
5 changed files with 32 additions and 21 deletions
+10
View File
@@ -1,6 +1,7 @@
package types
import (
abci "github.com/tendermint/abci/types"
"github.com/tendermint/go-merkle"
)
@@ -30,3 +31,12 @@ func (txs Txs) Hash() []byte {
return merkle.SimpleHashFromTwoHashes(left, right)
}
}
// TxResult contains results of executing the transaction.
//
// One usage is indexing transaction results.
type TxResult struct {
Height uint64 `json:"height"`
Index uint32 `json:"index"`
DeliverTx abci.ResponseDeliverTx `json:"deliver_tx"`
}
-14
View File
@@ -1,14 +0,0 @@
package types
import (
abci "github.com/tendermint/abci/types"
)
// TxResult contains results of executing the transaction.
//
// One usage is indexing transaction results.
type TxResult struct {
Height uint64 `json:"height"`
Index uint32 `json:"index"`
DeliverTx abci.ResponseDeliverTx `json:"deliver_tx"`
}