remove pending tx count

pull/1/head
yann300 6 years ago
parent 0838d0536e
commit 635f0b2184
  1. 9
      src/app/panels/terminal.js

@ -27,7 +27,6 @@ class Terminal {
constructor (opts = { auto: true }) { constructor (opts = { auto: true }) {
var self = this var self = this
self.event = new EventManager() self.event = new EventManager()
self._api = opts.api
self.data = { self.data = {
lineLength: opts.lineLength || 80, lineLength: opts.lineLength || 80,
session: [], session: [],
@ -135,9 +134,6 @@ class Terminal {
</div> </div>
</div> </div>
` `
setInterval(() => {
updatePendingTxs(self._api.udapp, self._view.pendingTxCount)
}, 5000)
function listenOnNetwork (ev) { function listenOnNetwork (ev) {
self.event.trigger('listenOnNetWork', [ev.currentTarget.checked]) self.event.trigger('listenOnNetWork', [ev.currentTarget.checked])
@ -578,10 +574,5 @@ function domTerminalFeatures (self, scopedCommands) {
} }
function blockify (el) { return yo`<div class=${css.block}>${el}</div>` } function blockify (el) { return yo`<div class=${css.block}>${el}</div>` }
// PENDING TX
function updatePendingTxs (udapp, el) {
var count = Object.keys(udapp.pendingTransactions()).length
el.innerText = count
}
module.exports = Terminal module.exports = Terminal

Loading…
Cancel
Save