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/types.ts | |
parent | ace1a1be349c279fe87b536f786bb32c4e17f889 (diff) | |
download | wallet-core-75cf7ac3c3a00b29fab15b1fe3696617918fc643.tar.xz |
simplify coin status, don't show refreshed coins in balance
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/types.ts b/src/types.ts index 5b2fa285c..87b77b8ac 100644 --- a/src/types.ts +++ b/src/types.ts @@ -347,6 +347,12 @@ export interface CoinPaySig { f: AmountJson; } + +export enum CoinStatus { + Fresh, TransactionPending, Dirty, Refreshed, +} + + /** * CoinRecord as stored in the "coins" data store * of the wallet database. @@ -391,17 +397,9 @@ export interface CoinRecord { suspended?: boolean; /** - * Was the coin revealed in a transaction? - */ - dirty: boolean; - - /** - * Is the coin currently involved in a transaction? - * - * This delays refreshing until the transaction is finished or - * aborted. + * Status of the coin. */ - transactionPending: boolean; + status: CoinStatus; } |