xmr-btc-swap/monero-harness
Daniel Karzel 96115da039 Wait for wallet to catch up instead of block generation
The monero harness wallet always starts a miner that mines new blocks every second.
This can conflict with additionally triggering block generation  and cause this error:

```
monero_rpc::rpc::monerod: generate blocks response: {
  "error": {
    "code": -7,
    "message": "Block not accepted"
  },
  "id": "1",
  "jsonrpc": "2.0"
}
```

Since the miner is generating blocks anyway we can wait for the wallet to catch up.
Refresh is done upon querying the balance, thus the refresh calls were removed.
2021-03-01 17:17:02 +11:00
..
src Split monero-harness into harness and rpc 2021-02-23 14:30:20 +11:00
tests Wait for wallet to catch up instead of block generation 2021-03-01 17:17:02 +11:00
Cargo.toml Split monero-harness into harness and rpc 2021-02-23 14:30:20 +11:00
README.md Swap Monero for Bitcoin 2020-09-28 17:15:57 +10:00
rust-toolchain Swap Monero for Bitcoin 2020-09-28 17:15:57 +10:00
rustfmt.toml Upgrade toolchain 2021-02-04 15:18:33 +11:00

Monero Harness

Provides an implementation of testcontainers::Image for a monero image to run monerod and monero-wallet-rpc in a docker container.

Also provides two standalone JSON RPC clients, one each for monerod and monero-wallet-rpc.

Example Usage

Please see tests/* for example usage.