test passing with new TxProposal checks

This commit is contained in:
Matias Alejo Garcia 2014-11-22 12:38:53 -03:00
commit ae94139236
5 changed files with 24 additions and 28 deletions

View file

@ -137,11 +137,7 @@ describe('PayPro (in Wallet) model', function() {
var w = cachedCreateW2();
unspentTest[0].address = w.publicKeyRing.getAddress(1, true, w.publicKey).toString();
unspentTest[0].scriptPubKey = w.publicKeyRing.getScriptPubKeyHex(1, true, w.publicKey);
w.getUnspent = function(cb) {
return setTimeout(function() {
return cb(null, unspentTest, unspentTest);
}, 1);
};
w.getUnspent = sinon.stub().yields(null, unspentTest, unspentTest);
return w;
};

View file

@ -34,10 +34,10 @@ function FakeBuilder() {
this.vanilla = {
scriptSig: [VALID_SCRIPTSIG_BUF],
outs: [{
outs: JSON.stringify([{
address: '2NDJbzwzsmRgD2o5HHXPhuq5g6tkKTjYkd6',
amountSatStr: '123',
}]
}]),
}
}