File tree 1 file changed +6
-12
lines changed
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,7 @@ struct WalletTxStatus;
20
20
21
21
/* * UI model for transaction status. The transaction status is the part of a transaction that will change over time.
22
22
*/
23
- class TransactionStatus
24
- {
25
- public:
26
- TransactionStatus () : countsForBalance(false ), sortKey(" " ),
27
- matures_in (0 ), status(Unconfirmed), depth(0 ), open_for(0 )
28
- { }
29
-
23
+ struct TransactionStatus {
30
24
enum Status {
31
25
Confirmed, /* *< Have 6 or more confirmations (normal tx) or fully mature (mined tx) **/
32
26
// / Normal (sent/received) transactions
@@ -40,25 +34,25 @@ class TransactionStatus
40
34
};
41
35
42
36
// / Transaction counts towards available balance
43
- bool countsForBalance;
37
+ bool countsForBalance{ false } ;
44
38
// / Sorting key based on status
45
39
std::string sortKey;
46
40
47
41
/* * @name Generated (mined) transactions
48
42
@{*/
49
- int matures_in;
43
+ int matures_in{ 0 } ;
50
44
/* *@}*/
51
45
52
46
/* * @name Reported status
53
47
@{*/
54
- Status status;
55
- qint64 depth;
48
+ Status status{Unconfirmed} ;
49
+ qint64 depth{ 0 } ;
56
50
/* *@}*/
57
51
58
52
/* * Current block hash (to know whether cached status is still valid) */
59
53
uint256 m_cur_block_hash{};
60
54
61
- bool needsUpdate;
55
+ bool needsUpdate{ false } ;
62
56
};
63
57
64
58
/* * UI model for a transaction. A core transaction can be represented by multiple UI transactions if it has
You can’t perform that action at this time.
0 commit comments