FIX: cosmetic changes

This commit is contained in:
Overtorment 2018-07-12 00:38:24 +01:00
parent b00eadad82
commit 9d3c3fbb5d
3 changed files with 17 additions and 2 deletions

View File

@ -23,6 +23,12 @@ export class LegacyWallet extends AbstractWallet {
if (+new Date() - this._lastBalanceFetch >= 60 * 1000) {
return true;
}
for (let tx of this.transactions) {
if (tx.confirmations < 7) {
return true;
}
}
}
generate() {
@ -370,4 +376,13 @@ export class LegacyWallet extends AbstractWallet {
'e5926dbeb57145979153adc41305b183',
]);
}
isAddressValid(address) {
try {
bitcoin.address.toOutputScript(address);
return true;
} catch (e) {
return false;
}
}
}

View File

@ -75,7 +75,7 @@ module.exports = {
send: {
list: {
tabBarLabel: 'Send',
header: 'Send',
header: 'send',
},
details: {
title: 'Create Transaction',

View File

@ -312,7 +312,7 @@ export default class WalletsList extends Component {
})()}
title={loc.transactionTimeToReadable(rowData.received)}
subtitle={
(rowData.confirmations < 200 ? loc.transactions.list.conf + ': ' + rowData.confirmations + ' ' : '') +
(rowData.confirmations < 7 ? loc.transactions.list.conf + ': ' + rowData.confirmations + ' ' : '') +
this.txMemo(rowData.hash)
}
onPress={() => {