Allow all pending transaction results to be cancelled.

This commit is contained in:
Simo Kinnunen
2014-04-15 17:33:22 +09:00
parent f46540e51e
commit b0400130ff
2 changed files with 32 additions and 7 deletions

View File

@@ -478,13 +478,12 @@ module.exports = function(options) {
}
})
.catch(function(err) {
var reply = wireutil.reply('storage')
log.error('Storage upload had an error', err.stack)
leaveChannel(responseChannel)
push.send([
channel
, reply.fail('fail')
])
socket.emit('tx.cancel', responseChannel, {
success: false
, data: 'fail_upload'
})
})
})
.on('forward.test', function(channel, responseChannel, data) {