mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-18 04:14:32 -05:00
96115da039
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. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
README.md | ||
rust-toolchain | ||
rustfmt.toml |
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.