Transaction: renames getHash to getId

In turn also removes the inherent calculation of tx.hash after deserialization.
This commit is contained in:
Daniel Cousens 2014-05-20 14:07:22 +10:00
parent 867465a03f
commit bdc7131d0e
4 changed files with 25 additions and 16 deletions

View file

@ -303,7 +303,6 @@ describe('Wallet', function() {
function outputCount(){
return Object.keys(wallet.outputs).length
}
})
describe("when tx ins outpoint contains a known txhash:i", function(){
@ -340,7 +339,7 @@ describe('Wallet', function() {
function verifyOutputAdded(index, pending) {
var txOut = tx.outs[index]
var key = tx.getHash() + ":" + index
var key = tx.getId() + ":" + index
var output = wallet.outputs[key]
assert.equal(output.receive, key)
assert.equal(output.value, txOut.value)