Wallet: store txHash, vout separately instead of "from: txid:vout"
This commit is contained in:
parent
735feab7ba
commit
33955a7fb5
2 changed files with 20 additions and 11 deletions
test
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue