add private key in Wallet call to network start

This commit is contained in:
Ryan X. Charles 2014-06-18 20:12:38 -07:00
commit 8e81e9108f
2 changed files with 11 additions and 2 deletions

View file

@ -236,6 +236,10 @@ Wallet.prototype.getMyCopayerId = function() {
return this.getCopayerId(0);
};
Wallet.prototype.getMyCopayerIdPriv = function() {
return this.privateKey.getIdPriv();
};
Wallet.prototype.getSecret = function() {
var pubkeybuf = new Buffer(this.getMyCopayerId(), 'hex');
@ -271,8 +275,10 @@ Wallet.prototype.netStart = function() {
});
var myId = self.getMyCopayerId();
var myIdPriv = self.getMyCopayerIdPriv();
var startOpts = {
copayerId: myId,
privkey: myIdPriv,
token: self.token,
maxPeers: self.totalCopayers
};