mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
initial suite of tests
This commit is contained in:
+13
@@ -112,6 +112,19 @@ func TxRecordsToTxs(trs []*abci.TxRecord) Txs {
|
||||
return txs
|
||||
}
|
||||
|
||||
// TxsToTxRecords converts from a list of Txs to a list of TxRecords. All of the
|
||||
// resulting TxRecords are returned with the status TxRecord_UNMODIFIED.
|
||||
func TxsToTxRecords(txs []Tx) []*abci.TxRecord {
|
||||
trs := make([]*abci.TxRecord, len(txs))
|
||||
for i, tx := range txs {
|
||||
trs[i] = &abci.TxRecord{
|
||||
Action: abci.TxRecord_UNMODIFIED,
|
||||
Tx: tx,
|
||||
}
|
||||
}
|
||||
return trs
|
||||
}
|
||||
|
||||
// TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.
|
||||
type TxProof struct {
|
||||
RootHash tmbytes.HexBytes `json:"root_hash"`
|
||||
|
||||
Reference in New Issue
Block a user