mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-02-28 05:50:25 +00:00
[skip ci] minor
This commit is contained in:
parent
2c38641d5c
commit
2573ca6b68
2 changed files with 13 additions and 8 deletions
cw_bitcoin/lib
lib/src/screens/unspent_coins/widgets
|
@ -75,6 +75,10 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with
|
||||||
Future<void> initMwebAddresses() async {
|
Future<void> initMwebAddresses() async {
|
||||||
print("Initializing MWEB address timer!");
|
print("Initializing MWEB address timer!");
|
||||||
Timer.periodic(const Duration(seconds: 2), (timer) async {
|
Timer.periodic(const Duration(seconds: 2), (timer) async {
|
||||||
|
if (super.allAddresses.length > 1000) {
|
||||||
|
timer.cancel();
|
||||||
|
return;
|
||||||
|
}
|
||||||
print("Generating MWEB addresses...");
|
print("Generating MWEB addresses...");
|
||||||
await generateNumAddresses(250);
|
await generateNumAddresses(250);
|
||||||
await Future.delayed(const Duration(milliseconds: 1500));
|
await Future.delayed(const Duration(milliseconds: 1500));
|
||||||
|
@ -95,6 +99,7 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with
|
||||||
addAddresses(mwebAddresses);
|
addAddresses(mwebAddresses);
|
||||||
print("MWEB addresses initialized ${mwebAddrs.length}");
|
print("MWEB addresses initialized ${mwebAddrs.length}");
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,10 +103,10 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
),
|
),
|
||||||
// Row(
|
Row(
|
||||||
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
// children: [
|
children: [
|
||||||
if (isChange || true)
|
if (isChange)
|
||||||
Container(
|
Container(
|
||||||
height: 17,
|
height: 17,
|
||||||
padding: EdgeInsets.only(left: 6, right: 6),
|
padding: EdgeInsets.only(left: 6, right: 6),
|
||||||
|
@ -123,7 +123,7 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (address.toLowerCase().contains("mweb") || true)
|
if (address.toLowerCase().contains("mweb"))
|
||||||
Container(
|
Container(
|
||||||
height: 17,
|
height: 17,
|
||||||
padding: EdgeInsets.only(left: 6, right: 6),
|
padding: EdgeInsets.only(left: 6, right: 6),
|
||||||
|
@ -141,7 +141,7 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (isSilentPayment || true)
|
if (isSilentPayment)
|
||||||
Container(
|
Container(
|
||||||
height: 17,
|
height: 17,
|
||||||
padding: EdgeInsets.only(left: 6, right: 6),
|
padding: EdgeInsets.only(left: 6, right: 6),
|
||||||
|
@ -158,8 +158,8 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// ],
|
],
|
||||||
// ),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue