mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-03-23 14:47:02 -04:00

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