Removed direct references to Bitcoin

This commit is contained in:
vub 2013-10-08 06:45:13 -04:00
parent a753f069a5
commit 038f8d5d99
6 changed files with 28 additions and 22 deletions

View file

@ -329,7 +329,7 @@ Wallet.prototype.clearTransactions = function () {
* Check to see if a pubKeyHash belongs to this wallet.
*/
Wallet.prototype.hasHash = function (hash) {
if (Bitcoin.Util.isArray(hash)) hash = conv.bytesToHex(hash);
if (util.isArray(hash)) hash = conv.bytesToHex(hash);
// TODO: Just create an object with hashes as keys for faster lookup
for (var k = 0; k < this.addressHashes.length; k++) {