From 73a257800071c5c2e558ff61d2befb71fdf53b9e Mon Sep 17 00:00:00 2001 From: Pierre-Marie Padiou Date: Tue, 7 Nov 2023 17:09:41 +0100 Subject: [PATCH] Fix wallet name in `BitcoinCoreClientSpec` (#2772) `ByteVector.toString()` was meant to be `toHex()`, and there is a size limit on Windows. --- .../eclair/blockchain/bitcoind/BitcoinCoreClientSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclair-core/src/test/scala/fr/acinq/eclair/blockchain/bitcoind/BitcoinCoreClientSpec.scala b/eclair-core/src/test/scala/fr/acinq/eclair/blockchain/bitcoind/BitcoinCoreClientSpec.scala index 92569e4541..6d0312782c 100644 --- a/eclair-core/src/test/scala/fr/acinq/eclair/blockchain/bitcoind/BitcoinCoreClientSpec.scala +++ b/eclair-core/src/test/scala/fr/acinq/eclair/blockchain/bitcoind/BitcoinCoreClientSpec.scala @@ -1408,7 +1408,7 @@ class BitcoinCoreClientWithEclairSignerSpec extends BitcoinCoreClientSpec { override def useEclairSigner = true private def createWallet(seed: ByteVector): (BitcoinCoreClient, LocalOnChainKeyManager) = { - val name = s"eclair_${seed.toString()}" + val name = s"eclair_${seed.toHex.take(16)}" val onChainKeyManager = new LocalOnChainKeyManager(name, seed, TimestampSecond.now(), Block.RegtestGenesisBlock.hash) val jsonRpcClient = new BasicBitcoinJsonRPCClient(rpcAuthMethod = bitcoinrpcauthmethod, host = "localhost", port = bitcoindRpcPort, wallet = Some(name)) (new BitcoinCoreClient(jsonRpcClient, Some(onChainKeyManager)), onChainKeyManager)