move TxsToTxRecords as helper function for state tests

This commit is contained in:
William Banfield
2022-03-15 10:21:56 -04:00
parent ae184ba529
commit cff2d43d1e
2 changed files with 15 additions and 17 deletions
-13
View File
@@ -293,19 +293,6 @@ func containsAllTxs(super, sub []Tx) (int, bool) {
return -1, true
}
// 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"`