diff --git a/src/commonMain/kotlin/fr/acinq/lightning/blockchain/mempool/MempoolSpaceClient.kt b/src/commonMain/kotlin/fr/acinq/lightning/blockchain/mempool/MempoolSpaceClient.kt index 02091191e..e708558a2 100644 --- a/src/commonMain/kotlin/fr/acinq/lightning/blockchain/mempool/MempoolSpaceClient.kt +++ b/src/commonMain/kotlin/fr/acinq/lightning/blockchain/mempool/MempoolSpaceClient.kt @@ -115,7 +115,7 @@ class MempoolSpaceClient(val mempoolUrl: Url, loggerFactory: LoggerFactory) : IC companion object { val OfficialMempoolMainnet = Url("https://mempool.space") - val OfficialMempoolTestnet = Url("https://mempool.space/testnet/") + val OfficialMempoolTestnet3 = Url("https://mempool.space/testnet/") val OfficialMempoolTestnet4 = Url("https://mempool.space/testnet4/") } } diff --git a/src/commonTest/kotlin/fr/acinq/lightning/blockchain/mempool/MempoolSpaceWatcherTest.kt b/src/commonTest/kotlin/fr/acinq/lightning/blockchain/mempool/MempoolSpaceWatcherTest.kt index 1b240c43d..c45cf3ab7 100644 --- a/src/commonTest/kotlin/fr/acinq/lightning/blockchain/mempool/MempoolSpaceWatcherTest.kt +++ b/src/commonTest/kotlin/fr/acinq/lightning/blockchain/mempool/MempoolSpaceWatcherTest.kt @@ -27,14 +27,14 @@ class MempoolSpaceWatcherTest : LightningTestSuite() { val watch = WatchSpent( channelId = randomBytes32(), - txId = TxId("b97167ea09da62daaa1d3198460fc4c204a553cb3e5c80ab48f5b75a870f15c5"), - outputIndex = 0, + txId = TxId("002f3246fa012ded792050f4a834e2eccdd772e1c7dc3a6a88cd6acdcbb9a2b2"), + outputIndex = 1, publicKeyScript = ByteVector.empty, event = BITCOIN_FUNDING_SPENT ) watcher.watch(watch) val event = assertIs(notifications.first()) - assertEquals(TxId("5693d68997abfacb65cc7e6019e8ed2edb3f9f2260ae8d221e8726b8fe870ae0"), event.tx.txid) + assertEquals(TxId("8bce727fe08fbb79f02682f71d0b1f33a79039cd7a70623a51945bf2dc86d77c"), event.tx.txid) // Right after checking whether the watched utxo is spent, a 2nd call is made by the watcher // to find out whether the spending tx is confirmed, and the watch can be cleaned up. We give // some time for that call to complete, in order to prevent a coroutine cancellation stack trace. @@ -50,13 +50,13 @@ class MempoolSpaceWatcherTest : LightningTestSuite() { val watch = WatchConfirmed( channelId = randomBytes32(), - txId = TxId("5693d68997abfacb65cc7e6019e8ed2edb3f9f2260ae8d221e8726b8fe870ae0"), + txId = TxId("8bce727fe08fbb79f02682f71d0b1f33a79039cd7a70623a51945bf2dc86d77c"), publicKeyScript = ByteVector.empty, event = BITCOIN_FUNDING_DEPTHOK, minDepth = 5 ) watcher.watch(watch) val event = assertIs(notifications.first()) - assertEquals(TxId("5693d68997abfacb65cc7e6019e8ed2edb3f9f2260ae8d221e8726b8fe870ae0"), event.tx.txid) + assertEquals(TxId("8bce727fe08fbb79f02682f71d0b1f33a79039cd7a70623a51945bf2dc86d77c"), event.tx.txid) } } \ No newline at end of file