only count pending refreshes
This commit is contained in:
parent
8b62698729
commit
007df45ef9
File diff suppressed because one or more lines are too long
@ -87,3 +87,16 @@ test("withdraw-request", (t: TestLib) => {
|
||||
t.assert(x.value == 3);
|
||||
t.pass();
|
||||
});
|
||||
|
||||
|
||||
test("ecdsa", (t: TestLib) => {
|
||||
const priv = native.EcdsaPrivateKey.create();
|
||||
const pub1 = priv.getPublicKey();
|
||||
t.pass();
|
||||
});
|
||||
|
||||
test("ecdhe", (t: TestLib) => {
|
||||
const priv = native.EcdhePrivateKey.create();
|
||||
const pub = priv.getPublicKey();
|
||||
t.pass();
|
||||
});
|
||||
|
@ -1315,7 +1315,7 @@ export class Wallet {
|
||||
|
||||
function collectPendingRefresh(r: RefreshSessionRecord,
|
||||
balance: WalletBalance) {
|
||||
if (!r.finished) {
|
||||
if (r.finished) {
|
||||
return balance;
|
||||
}
|
||||
let entry = ensureEntry(balance, r.valueWithFee.currency);
|
||||
|
Loading…
Reference in New Issue
Block a user