diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-04-13 16:08:41 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-04-13 16:08:41 +0200 |
commit | 75cf7ac3c3a00b29fab15b1fe3696617918fc643 (patch) | |
tree | 13fbf5fae108a19ba21f48360ea21bfdb8969540 /src/cryptoLib.ts | |
parent | ace1a1be349c279fe87b536f786bb32c4e17f889 (diff) |
simplify coin status, don't show refreshed coins in balance
Diffstat (limited to 'src/cryptoLib.ts')
-rw-r--r-- | src/cryptoLib.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cryptoLib.ts b/src/cryptoLib.ts index 7a363e643..717a681f4 100644 --- a/src/cryptoLib.ts +++ b/src/cryptoLib.ts @@ -24,7 +24,7 @@ import * as native from "./emscriptif"; import { PreCoinRecord, PayCoinInfo, AmountJson, - RefreshSessionRecord, RefreshPreCoinRecord, ReserveRecord + RefreshSessionRecord, RefreshPreCoinRecord, ReserveRecord, CoinStatus, } from "./types"; import create = chrome.alarms.create; import {OfferRecord} from "./wallet"; @@ -210,8 +210,7 @@ namespace RpcFunctions { let newAmount = new native.Amount(cd.coin.currentAmount); newAmount.sub(coinSpend); cd.coin.currentAmount = newAmount.toJson(); - cd.coin.dirty = true; - cd.coin.transactionPending = true; + cd.coin.status = CoinStatus.TransactionPending; let d = new native.DepositRequestPS({ h_contract: native.HashCode.fromCrock(offer.H_contract), |