bench: fix tx benchmark.

This commit is contained in:
Christopher Jeffrey 2016-10-20 10:04:34 -07:00
parent c2c06f732b
commit 47c6da514d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -104,11 +104,11 @@ for (var i = 0; i < 100; i++) {
}, },
script: [ script: [
new Buffer(9), new Buffer(9),
bcoin.ec.random(33) bcoin.crypto.randomBytes(33)
] ]
}); });
tx.addOutput({ tx.addOutput({
address: bcoin.address.fromHash(bcoin.ec.random(20)), address: bcoin.address.fromHash(bcoin.crypto.randomBytes(20)),
value: 0 value: 0
}); });
} }