mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-03 18:56:59 +01:00
Add main resource files
* apitest.properties - config file for customizing ApiTestConfig options * logback.xml - logging config file, will override logback files found in classpath * bitcoin.conf - bitcoin-core regtest config file, overwritten during startup with correct path to blocknofity * blocknotify - bitcoin-core blocknotify config file
This commit is contained in:
parent
88b5e9dbad
commit
e0c27eedcf
4 changed files with 57 additions and 0 deletions
0
apitest/src/main/resources/apitest.properties
Normal file
0
apitest/src/main/resources/apitest.properties
Normal file
16
apitest/src/main/resources/bitcoin.conf
Normal file
16
apitest/src/main/resources/bitcoin.conf
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# This file is overwritten by ApiTestConfig.java at startup, to set the correct blocknotify script path.
|
||||||
|
regtest=1
|
||||||
|
|
||||||
|
[regtest]
|
||||||
|
peerbloomfilters=1
|
||||||
|
rpcport=18443
|
||||||
|
|
||||||
|
server=1
|
||||||
|
txindex=1
|
||||||
|
|
||||||
|
# TODO migrate to rpcauth
|
||||||
|
rpcuser=apitest
|
||||||
|
rpcpassword=apitest
|
||||||
|
|
||||||
|
# The blocknotify path will be defined and at runtime.
|
||||||
|
# blocknotify=bash ~/.bitcoin/blocknotify %
|
20
apitest/src/main/resources/blocknotify
Executable file
20
apitest/src/main/resources/blocknotify
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Regtest ports start with 512*
|
||||||
|
|
||||||
|
# To avoid pesky bitcoind io errors, do not specify ports Bisq is not listening to.
|
||||||
|
|
||||||
|
# SeedNode listens on port 5120
|
||||||
|
echo $1 | nc -w 1 127.0.0.1 5120
|
||||||
|
|
||||||
|
# Arb Node listens on port 5121
|
||||||
|
echo $1 | nc -w 1 127.0.0.1 5121
|
||||||
|
|
||||||
|
# Alice Node listens on port 5122
|
||||||
|
echo $1 | nc -w 1 127.0.0.1 5122
|
||||||
|
|
||||||
|
# Bob Node listens on port 5123
|
||||||
|
echo $1 | nc -w 1 127.0.0.1 5123
|
||||||
|
|
||||||
|
# Some other node listens on port 5124, etc.
|
||||||
|
# echo $1 | nc -w 1 127.0.0.1 5124
|
21
apitest/src/main/resources/logback.xml
Normal file
21
apitest/src/main/resources/logback.xml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration>
|
||||||
|
<!--
|
||||||
|
The :daemon & :cli jars contain their own logback.xml config files, which causes chatty logback startup.
|
||||||
|
To avoid chatty logback msgs during its configuration, pass logback.configurationFile as a system property:
|
||||||
|
-Dlogback.configurationFile=apitest/build/resources/main/logback.xml
|
||||||
|
The gradle build file takes care of adding this system property to the bisq-apitest script.
|
||||||
|
-->
|
||||||
|
<appender name="CONSOLE_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder>
|
||||||
|
<pattern>%highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{30}: %msg %xEx%n)</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<root level="INFO">
|
||||||
|
<appender-ref ref="CONSOLE_APPENDER"/>
|
||||||
|
</root>
|
||||||
|
|
||||||
|
<logger name="com.neemre.btcdcli4j" level="WARN"/>
|
||||||
|
<logger name="io.grpc.netty" level="WARN"/>
|
||||||
|
</configuration>
|
Loading…
Add table
Reference in a new issue