Skip to content

Commit

Permalink
Fix wallet name in BitcoinCoreClientSpec (#2772)
Browse files Browse the repository at this point in the history
`ByteVector.toString()` was meant to be `toHex()`, and there is a size limit on Windows.
  • Loading branch information
pm47 authored Nov 7, 2023
1 parent 35e318e commit 73a2578
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 73a2578

Please sign in to comment.