From 75cf7ac3c3a00b29fab15b1fe3696617918fc643 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 13 Apr 2017 16:08:41 +0200 Subject: simplify coin status, don't show refreshed coins in balance --- src/types.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/types.ts') 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; } -- cgit v1.2.3