Fixes
This commit is contained in:
parent
53ae383d35
commit
a1f45ad3f3
|
@ -249,7 +249,6 @@ exports.getRandom = function(opts) {
|
||||||
reject(e);
|
reject(e);
|
||||||
}
|
}
|
||||||
return keys2ripe(signPublicKey, encPrivateKey).then(function(ripe) {
|
return keys2ripe(signPublicKey, encPrivateKey).then(function(ripe) {
|
||||||
console.log(ripe);
|
|
||||||
var len = getripelen(ripe);
|
var len = getripelen(ripe);
|
||||||
if (
|
if (
|
||||||
(strictripelen && len === ripelen) ||
|
(strictripelen && len === ripelen) ||
|
||||||
|
|
1
test.js
1
test.js
|
@ -118,6 +118,7 @@ describe("Address", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should allow to generate new Bitmessage address", function() {
|
it("should allow to generate new Bitmessage address", function() {
|
||||||
|
this.timeout(10000);
|
||||||
return Address.getRandom().then(function(addr) {
|
return Address.getRandom().then(function(addr) {
|
||||||
expect(addr.version).to.equal(4);
|
expect(addr.version).to.equal(4);
|
||||||
expect(addr.stream).to.equal(1);
|
expect(addr.stream).to.equal(1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user