File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ import java.nio.file.Files
88import java.nio.file.Paths
99import org.slf4j.Logger
1010import org.slf4j.LoggerFactory
11-
12-
11+ import java.nio.file.Path
1312
1413fun main () {
1514 // Regtest environment must have Compact block filter enabled to run this
@@ -19,9 +18,10 @@ fun main() {
1918 val ip: IpAddress = IpAddress .fromIpv4(127u , 0u , 0u , 1u )
2019 val peer: Peer = Peer (ip, 18444u , false )
2120 val peers: List <Peer > = listOf (peer)
22- val currentPath = Paths .get(" examples/data" ).toAbsolutePath().normalize()
23- println (" Current path: $currentPath " )
24- val persistenceFilePath = Files .createTempDirectory(currentPath, " kyoto-data_" )
21+
22+ val persistenceDir: Path = Paths .get(" examples/data" ).toAbsolutePath().normalize()
23+ Files .createDirectories(persistenceDir)
24+ val persistenceFilePath: Path = Files .createTempDirectory(persistenceDir, " kyoto-data_" )
2525
2626 val wallet = getNewWallet(ActiveWalletScriptType .P2WPKH , Network .REGTEST )
2727 val address = wallet.revealNextAddress(KeychainKind .EXTERNAL )
You can’t perform that action at this time.
0 commit comments