Migrate to new self-hosted mempool.space instance (#1820)
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
Seth For Privacy committed
Nov 26, 2024 at 09:56 UTC
eff6616981cd2fe453e0322e5d8e05f30ab6b4c0
3 files changed
+4
-4
cw_bitcoin/lib/electrum_wallet.dart
+2
-2
@@ -1707,7 +1707,7 @@ abstract class ElectrumWalletBase
1707
try {
1708
final blockHash = await http.get(
1709
Uri.parse(
1710
- "http://mempool.cakewallet.com:8999/api/v1/block-height/$height",
1710
+ "https://mempool.cakewallet.com/api/v1/block-height/$height",
1711
),
1712
);
1713
@@ -1716,7 +1716,7 @@ abstract class ElectrumWalletBase
1716
jsonDecode(blockHash.body) != null) {
1717
final blockResponse = await http.get(
1718
Uri.parse(
1719
- "http://mempool.cakewallet.com:8999/api/v1/block/${blockHash.body}",
1719
+ "https://mempool.cakewallet.com/api/v1/block/${blockHash.body}",
1720
),
1721
);
1722
if (blockResponse.statusCode == 200 &&
cw_core/lib/get_height_by_date.dart
+1
-1
@@ -270,7 +270,7 @@ const bitcoinDates = {
270
Future<int> getBitcoinHeightByDateAPI({required DateTime date}) async {
271
final response = await http.get(
272
Uri.parse(
273
- "http://mempool.cakewallet.com:8999/api/v1/mining/blocks/timestamp/${(date.millisecondsSinceEpoch / 1000).round()}",
273
+ "https://mempool.cakewallet.com/api/v1/mining/blocks/timestamp/${(date.millisecondsSinceEpoch / 1000).round()}",
274
),
275
);
276
lib/view_model/transaction_details_view_model.dart
+1
-1
@@ -159,7 +159,7 @@ abstract class TransactionDetailsViewModelBase with Store {
159
case WalletType.monero:
160
return 'https://monero.com/tx/${txId}';
161
case WalletType.bitcoin:
162
- return 'https://mempool.space/${wallet.isTestnet ? "testnet/" : ""}tx/${txId}';
162
+ return 'https://mempool.cakewallet.com/${wallet.isTestnet ? "testnet/" : ""}tx/${txId}';
163
case WalletType.litecoin:
164
return 'https://blockchair.com/litecoin/transaction/${txId}';
165
case WalletType.bitcoinCash: