Wallet: store txHash, vout separately instead of "from: txid:vout"

This commit is contained in:
Daniel Cousens 2014-08-17 16:42:00 +10:00
commit 33955a7fb5
2 changed files with 20 additions and 11 deletions

View file

@ -422,9 +422,10 @@ describe('Wallet', function() {
function verifyOutputAdded(index, pending) {
var txOut = tx.outs[index]
var key = tx.getId() + ":" + index
var output = wallet.outputs[key]
assert.equal(output.from, key)
assert.deepEqual(output.hash, tx.getHash())
assert.equal(output.value, txOut.value)
assert.equal(output.pending, pending)