Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/src/main/kotlin/Kyoto.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import java.nio.file.Files
import java.nio.file.Paths
import org.slf4j.Logger
import org.slf4j.LoggerFactory


import java.nio.file.Path

fun main() {
// Regtest environment must have Compact block filter enabled to run this
Expand All @@ -19,9 +18,10 @@ fun main() {
val ip: IpAddress = IpAddress.fromIpv4(127u, 0u, 0u, 1u)
val peer: Peer = Peer(ip, 18444u, false)
val peers: List<Peer> = listOf(peer)
val currentPath = Paths.get("examples/data").toAbsolutePath().normalize()
println("Current path: $currentPath")
val persistenceFilePath = Files.createTempDirectory(currentPath, "kyoto-data_")

val persistenceDir: Path = Paths.get("examples/data").toAbsolutePath().normalize()
Files.createDirectories(persistenceDir)
val persistenceFilePath: Path = Files.createTempDirectory(persistenceDir, "kyoto-data_")

val wallet = getNewWallet(ActiveWalletScriptType.P2WPKH, Network.REGTEST)
val address = wallet.revealNextAddress(KeychainKind.EXTERNAL)
Expand Down
4 changes: 3 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ submodule-to-master:
&& git pull origin master

[group("Build")]
[doc("Build the library for given ARCH.")]
[doc("Build the library for given ARCH. Will use the committed version of the submodule.")]
build ARCH="macos-aarch64":
bash ./scripts/build-{{ARCH}}.sh

Expand All @@ -56,6 +56,8 @@ clean:
rm -rf ./bdk-ffi/bdk-ffi/target/
rm -rf ./build/
rm -rf ./lib/build/
rm -rf ./examples/build/
rm -rf ./examples/data/

[group("Test")]
[doc("Run all tests, unless a specific test is provided.")]
Expand Down