diff --git a/.env.example b/.env.example index eeacfd3..4d6887d 100644 --- a/.env.example +++ b/.env.example @@ -107,8 +107,8 @@ BITCOIN_CONFIRMATION_TIERS='[{"upToTotalFiat":"30","minConfirmations":0},{"upToT BITCOIN_MIN_INCOMING_ATOMIC=7 # 0.00000007 BTC (~half a USD cent at that moment) ELECTRUM_VERSION=4.8.1 -ELECTRUM_NETWORK=testnet -ELECTRUM_SERVER=electrum.blockstream.info:60002:s +ELECTRUM_NETWORK=testnet4 +ELECTRUM_SERVER=testnet4-electrumx.wakiyamap.dev:51002:s ELECTRUM_DAEMON_HOST=electrum-daemon ELECTRUM_DAEMON_PORT=7777 ELECTRUM_DAEMON_RPC_USER=electrum diff --git a/backend/src/modules/bitcoinWallet/services/BitcoinWalletAdminService.spec.ts b/backend/src/modules/bitcoinWallet/services/BitcoinWalletAdminService.spec.ts index bc32bbd..f512062 100644 --- a/backend/src/modules/bitcoinWallet/services/BitcoinWalletAdminService.spec.ts +++ b/backend/src/modules/bitcoinWallet/services/BitcoinWalletAdminService.spec.ts @@ -32,7 +32,7 @@ describe('BitcoinWalletAdminService', () => { configService = { get: jest.fn().mockReturnValue({ - network: 'testnet' + network: 'testnet4' }) }; @@ -47,7 +47,7 @@ describe('BitcoinWalletAdminService', () => { expect(status).toEqual( expect.objectContaining({ - network: 'testnet', + network: 'testnet4', rpcVersion: '4.8.1', blockHeight: 900_000, serverHeight: 900_000, diff --git a/backend/src/types/ElectrumNetwork.ts b/backend/src/types/ElectrumNetwork.ts index 7a5d863..068661e 100644 --- a/backend/src/types/ElectrumNetwork.ts +++ b/backend/src/types/ElectrumNetwork.ts @@ -1,4 +1,4 @@ export enum ElectrumNetwork { Mainnet = 'mainnet', - Testnet = 'testnet' + Testnet4 = 'testnet4' }