mirror of https://github.com/BTCPrivate/copay.git
fix error and improve performance
This commit is contained in:
parent
a1fe7b3d7d
commit
80499af194
|
@ -534,11 +534,12 @@ describe('Wallet model', function() {
|
||||||
},
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
|
var roundWallet = cachedCreateW2();
|
||||||
|
|
||||||
roundErrorChecks.forEach(function(c) {
|
roundErrorChecks.forEach(function(c) {
|
||||||
it('check rounding errors ' + c.unspent[0], function(done) {
|
it('#getBalance should handle rounding errors: ' + c.unspent[0], function(done) {
|
||||||
var w = cachedCreateW2();
|
var w = roundWallet;
|
||||||
w.generateAddress();
|
//w.generateAddress();
|
||||||
w.blockchain.fixUnspent(c.unspent.map(function(u) {
|
w.blockchain.fixUnspent(c.unspent.map(function(u) {
|
||||||
return {
|
return {
|
||||||
amount: u
|
amount: u
|
||||||
|
|
Loading…
Reference in New Issue