Display on-chain tx as confirmed/green after 3 confirmations to be in line...

Display on-chain tx as confirmed/green after 3 confirmations to be in line with home screen and channel screen, since channel state change from pending/orange to open/green after 3 cons by default.
parent 58bd2930
......@@ -63,7 +63,7 @@ class TransactionAction {
amount: transaction.amount,
fee: transaction.totalFees,
confirmations: transaction.numConfirmations,
status: transaction.numConfirmations < 1 ? 'unconfirmed' : 'confirmed',
status: transaction.numConfirmations < 3 ? 'unconfirmed' : 'confirmed',
date: parseDate(transaction.timeStamp),
}));
} catch (err) {
......
......@@ -62,7 +62,7 @@ describe('Action Transactions Unit Tests', () => {
txHash: 'some-hash',
amount: 42,
totalFees: 10,
numConfirmations: 0,
numConfirmations: 2,
timeStamp: 1527070395,
},
],
......@@ -73,7 +73,7 @@ describe('Action Transactions Unit Tests', () => {
type: 'bitcoin',
amount: 42,
fee: 10,
confirmations: 0,
confirmations: 2,
status: 'unconfirmed',
date: new Date('2018-05-23T10:13:15.000Z'),
});
......@@ -86,7 +86,7 @@ describe('Action Transactions Unit Tests', () => {
txHash: 'some-hash',
amount: 42,
totalFees: 10,
numConfirmations: 1,
numConfirmations: 3,
timeStamp: 1527070395,
},
],
......@@ -97,7 +97,7 @@ describe('Action Transactions Unit Tests', () => {
type: 'bitcoin',
amount: 42,
fee: 10,
confirmations: 1,
confirmations: 3,
status: 'confirmed',
date: new Date('2018-05-23T10:13:15.000Z'),
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment