fix test 13

This commit is contained in:
Manuel Araoz 2014-08-19 15:48:09 -04:00
commit 50348a171f
2 changed files with 11 additions and 22 deletions

View file

@ -370,10 +370,10 @@ Network.prototype.send = function(dest, payload, cb) {
};
Network.prototype.encode = function(copayerId, payload) {
Network.prototype.encode = function(copayerId, payload, nonce) {
this.iterateNonce();
var opts = {
nonce: this.networkNonce
nonce: nonce || this.networkNonce
};
var copayerIdBuf = new Buffer(copayerId, 'hex');
var message = AuthMessage.encode(copayerIdBuf, this.getKey(), payload, opts);