xmr-btc-swap/monero-rpc
Daniel Karzel 99268c2715
Workaround to avoid overflow in check_tx_key
`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.
2021-04-13 17:43:00 +10:00
..
src Workaround to avoid overflow in check_tx_key 2021-04-13 17:43:00 +10:00
Cargo.toml Remove native-tls feature from monero-rpc 2021-02-23 14:30:20 +11:00
README.md Enforce consistent formatting of Markdown files 2021-03-25 11:11:57 +11:00
rust-toolchain Split monero-harness into harness and rpc 2021-02-23 14:30:20 +11:00
rustfmt.toml Split monero-harness into harness and rpc 2021-02-23 14:30:20 +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.