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:
ghubstan 2020-07-09 15:27:01 -03:00
parent 88b5e9dbad
commit e0c27eedcf
No known key found for this signature in database
GPG key ID: E35592D6800A861E
4 changed files with 57 additions and 0 deletions

View 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 %

View 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

View 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>