Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmrswap: Work on testnet. #2942

Merged
merged 2 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ client/cmd/translationsreport/worksheets
server/cmd/dexadm/dexadm
client/tor/build
server/cmd/geogame/geogame
internal/libsecp256k1/secp256k1
internal/cmd/xmrswap/xmrswap
internal/cmd/xmrswap/config.json
29 changes: 29 additions & 0 deletions internal/cmd/xmrswap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Intro

xmrswap performs adaptor signature swaps between dcr and xmr. There are four
tests; success, Alice bails before xmr init, refund, and Bob bails after xmr init.

## Requirements

dcrd, dcrwallet, dcrctl, monerod, monero-wallet-rpc, and monero-wallet-cli

## Simnet

Simnet requires that the dcr and xmr harnesses in /dcrdex/dex/testing be running.

## Testnet

Testnet requires a synced monerod running on --stagenet. It also requires three
monero-wallet-rpc running. Two of these must have wallets loaded, and
unlocked (--wallet-file). Alice must be funded. The third only needs to be
pointed to a directory (--wallet-dir).

It also requires two dcrd running on --testnet with bob being funded and unlocked.

The file example-config.json must be copied to config.json and correct locations
for your system filled in.

Testnet tests can be run with the --testnet flag.

Testnet tests take a long time to finish as they wait on monero funds being
available and dcr confirmations.
11 changes: 11 additions & 0 deletions internal/cmd/xmrswap/example-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"alice": {
"xmrhost": "http://127.0.0.1:28284/json_rpc",
"dcrconf": "/home/me/dextest/dcr/trading1/trading1.conf"
},
"bob": {
"xmrhost": "http://127.0.0.1:28184/json_rpc",
"dcrconf": "/home/me/dextest/dcr/trading2/trading2.conf"
},
"extraxmrhost": "http://127.0.0.1:28484/json_rpc"
}
Loading
Loading