mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
99268c2715
`check_tx_key` can run into an overflow error when handling `-1` values for confirmations. This most likely happens when a transaction is not in mempool yet. In order to avoid unwanted side effects in the tests (i.e. failure because the transfer is seemingly confirmed, when it is not yet), we add a guard that checks for values close to u64::MAX. Note that we cannot check for the exact value of u64::MAX, because it seems that there is an addition somewhere in monerod/wallet-rpc, that results in `-1` (first), `-2` (second) (...) until the transaction is in mempool. |
||
---|---|---|
.. | ||
src | ||
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.