Merge pull request #5421 from ghubstan/02-update-docs

Update apitest docs for bitcoin-core v0.21 compat
This commit is contained in:
sqrrm 2021-04-20 11:52:32 +02:00 committed by GitHub
commit e7446b0604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 26 deletions

View file

@ -19,7 +19,7 @@ option adjustments to compensate.
**Java SDK**: Version 10, 11, or 12 **Java SDK**: Version 10, 11, or 12
**Bitcoin-Core**: Version 0.19 or 0.20 **Bitcoin-Core**: Version 0.19, 0.20, or 0.21
**Git Client** **Git Client**
@ -152,25 +152,6 @@ CLI command unless you change the servers `apiPort=<listening-port>`. In
`9998`, Bobs is `9999`. When you manually test the Api using the test harness, be aware of the port numbers being `9998`, Bobs is `9999`. When you manually test the Api using the test harness, be aware of the port numbers being
used in the CLI commands, so you know which server (Bobs or Alices) the CLI is sending requests to. used in the CLI commands, so you know which server (Bobs or Alices) the CLI is sending requests to.
### Registering Test Dispute Agents
If you ran the `trade-simulation.sh` script in your currently running test harness, dispute agents have
already been registered in the arbitration node, and you can run any of the commands described in the following
sections.
If you have not run the `trade-simulation.sh` script against the test harness, you will need to
manually register dispute agents in the arbitration node before you can initiate a trade. Copy, paste and run
the following CLI commands to register a `mediator` and a `refundagent`. Do not change the commands' port `9997`
option (the test arbitration node's listening port).
```
$ ./bisq-cli --password=xyz --port=9997 registerdisputeagent --dispute-agent-type=mediator \
--registration-key=6ac43ea1df2a290c1c8391736aa42e4339c5cb4f110ff0257a13b63211977b7a
$ ./bisq-cli --password=xyz --port=9997 registerdisputeagent --dispute-agent-type=refundagent \
--registration-key=6ac43ea1df2a290c1c8391736aa42e4339c5cb4f110ff0257a13b63211977b7a
```
_Note: The API cannot be used to register dispute agents on nodes connected to `mainnet`._
### CLI Help ### CLI Help
Useful information can be found using the CLIs `--help` option. Useful information can be found using the CLIs `--help` option.

View file

@ -6,7 +6,7 @@
# #
# Prerequisites: # Prerequisites:
# #
# - Linux or OSX with bash, Java 10, or Java 11-12 (JDK language compatibility 10), and bitcoin-core (v0.19, v0.20). # - Linux or OSX with bash, Java 10, or Java 11-12 (JDK language compatibility 10), and bitcoin-core (v0.19, v0.20, v0.21).
# #
# - Bisq must be fully built with apitest dao setup files installed. # - Bisq must be fully built with apitest dao setup files installed.
# Build command: `./gradlew clean build :apitest:installDaoSetup` # Build command: `./gradlew clean build :apitest:installDaoSetup`

View file

@ -10,7 +10,7 @@
# #
# Prerequisites: # Prerequisites:
# #
# - Linux or OSX with bash, Java 10, or Java 11-12 (JDK language compatibility 10), and bitcoin-core (v0.19, v0.20). # - Linux or OSX with bash, Java 10, or Java 11-12 (JDK language compatibility 10), and bitcoin-core (v0.19, v0.20, v0.21).
# #
# - Bisq must be fully built with apitest dao setup files installed. # - Bisq must be fully built with apitest dao setup files installed.
# Build command: `./gradlew clean build :apitest:installDaoSetup` # Build command: `./gradlew clean build :apitest:installDaoSetup`

View file

@ -7,7 +7,7 @@
# #
# Prerequisites: # Prerequisites:
# #
# - Linux or OSX with bash, Java 10, or Java 11-12 (JDK language compatibility 10), and bitcoin-core (v0.19, v0.20). # - Linux or OSX with bash, Java 10, or Java 11-12 (JDK language compatibility 10), and bitcoin-core (v0.19, v0.20, or v0.21).
# #
# - Bisq must be fully built with apitest dao setup files installed. # - Bisq must be fully built with apitest dao setup files installed.
# Build command: `./gradlew clean build :apitest:installDaoSetup` # Build command: `./gradlew clean build :apitest:installDaoSetup`

View file

@ -43,7 +43,7 @@ import bisq.apitest.config.ApiTestConfig;
* *
* All method, scenario and end to end tests are found in the test sources folder. * All method, scenario and end to end tests are found in the test sources folder.
* *
* Requires bitcoind v0.19.x * Requires bitcoind v0.19, v0.20, or v0.21.
*/ */
@Slf4j @Slf4j
public class ApiTestMain { public class ApiTestMain {

View file

@ -108,8 +108,8 @@ abstract class AbstractLinuxProcess implements LinuxProcess {
File bitcoindExecutable = Paths.get(config.bitcoinPath, "bitcoind").toFile(); File bitcoindExecutable = Paths.get(config.bitcoinPath, "bitcoind").toFile();
if (!bitcoindExecutable.exists() || !bitcoindExecutable.canExecute()) if (!bitcoindExecutable.exists() || !bitcoindExecutable.canExecute())
throw new IllegalStateException(format("'%s' cannot be found or executed.%n" throw new IllegalStateException(format("'%s' cannot be found or executed.%n"
+ "A bitcoin-core v0.19.X installation is required, and" + + "A bitcoin-core v0.19, v0.20, or v0.21 installation is required," +
" the 'bitcoinPath' must be configured in 'apitest.properties'", " and the 'bitcoinPath' must be configured in 'apitest.properties'",
bitcoindExecutable.getAbsolutePath())); bitcoindExecutable.getAbsolutePath()));
File bitcoindDatadir = new File(config.bitcoinDatadir); File bitcoindDatadir = new File(config.bitcoinDatadir);