aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/tx-helper.js
blob: 8f15cd3cc517e1a7cd7d3a5d7cac17e7e91c3372 (plain) (blame)
1
2
3
4
5
6
7
8
const valuesFor = require('../app/util').valuesFor

module.exports = function (unconfTxs, unconfMsgs) {
  var txValues = valuesFor(unconfTxs)
  var msgValues = valuesFor(unconfMsgs)
  var allValues = txValues.concat(msgValues)
  return allValues.sort(tx => tx.time)
}