Test beta mempool instance

This commit is contained in:
Seth For Privacy 2024-11-21 14:18:00 +00:00 committed by GitHub
parent ff5fbd7946
commit 12669ea48e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -489,7 +489,7 @@ abstract class ElectrumWalletBase
if (await checkIfMempoolAPIIsEnabled()) { if (await checkIfMempoolAPIIsEnabled()) {
try { try {
final response = final response =
await http.get(Uri.parse("http://mempool.cakewallet.com:8999/api/v1/fees/recommended")); await http.get(Uri.parse("http://mempool-beta.cakewallet.com:8999/api/v1/fees/recommended"));
final result = json.decode(response.body) as Map<String, dynamic>; final result = json.decode(response.body) as Map<String, dynamic>;
final slowFee = (result['economyFee'] as num?)?.toInt() ?? 0; final slowFee = (result['economyFee'] as num?)?.toInt() ?? 0;
@ -1706,7 +1706,7 @@ abstract class ElectrumWalletBase
try { try {
final blockHash = await http.get( final blockHash = await http.get(
Uri.parse( Uri.parse(
"http://mempool.cakewallet.com:8999/api/v1/block-height/$height", "http://mempool-beta.cakewallet.com:8999/api/v1/block-height/$height",
), ),
); );
@ -1715,7 +1715,7 @@ abstract class ElectrumWalletBase
jsonDecode(blockHash.body) != null) { jsonDecode(blockHash.body) != null) {
final blockResponse = await http.get( final blockResponse = await http.get(
Uri.parse( Uri.parse(
"http://mempool.cakewallet.com:8999/api/v1/block/${blockHash.body}", "http://mempool-beta.cakewallet.com:8999/api/v1/block/${blockHash.body}",
), ),
); );
if (blockResponse.statusCode == 200 && if (blockResponse.statusCode == 200 &&