idStore - cancel tx

feature/default_network_editable
kumavis 9 years ago
parent 390141d55d
commit bc2ec9f464
  1. 1
      app/scripts/background.js
  2. 8
      app/scripts/lib/idStore.js

@ -79,6 +79,7 @@ function handleInternalCommunication(remotePort){
submitPassword: idStore.submitPassword.bind(idStore),
setSelectedAddress: idStore.setSelectedAddress.bind(idStore),
signTransaction: idStore.signTransaction.bind(idStore),
cancelTransaction: idStore.cancelTransaction.bind(idStore),
setLocked: idStore.setLocked.bind(idStore),
})
duplex.pipe(connection).pipe(duplex)

@ -131,6 +131,14 @@ IdentityStore.prototype.signTransaction = function(password, txId, cb){
})
}
IdentityStore.prototype.cancelTransaction = function(txId){
const self = this
var txData = self._currentState.unconfTxs[txId]
delete self._currentState.unconfTxs[txId]
self._didUpdate()
}
//
// private
//

Loading…
Cancel
Save