Skip to content

Commit

Permalink
Add note about running download-offers to README
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-belcher committed Feb 23, 2022
1 parent 43f0355 commit f9bff3f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ total balance = 0.14974828 BTC

* You will need Tor running on the same machine, then open the file `src/directory_servers.rs` and make sure the const `TOR_ADDR` has the correct Tor port.

* To see all the advertised offers out there, use the `download-offers` subroutine: `cargo run -- download-offers`:

```
$ cargo run -- download-offers
n maker address max size min size abs fee amt rel fee time rel fee minlocktime
0 5wlgs4tmkc7vmzsqetpjyuz2qbhzydq6d7dotuvbven2cuqjbd2e2oyd.onion:6102 348541 10000 1000 10000000 100000 48
1 eitmocpmxolciziezpp6vzvhufg6djlq2y4oxpm436w5kpzx4tvfgead.onion:16102 314180 10000 1000 10000000 100000 48
```

* To run a yield generator (maker) on any network apart from regtest, you will need to create a tor hidden service for your maker. Search the web for "setup tor hidden service", a good article is [this one](https://www.linuxjournal.com/content/tor-hidden-services). When you have your hidden service hostname, copy it into the field near the top of the file `src/maker_protocol.rs`. Run with `cargo run -- --wallet-file-name=maker.teleport run-yield-generator` (note that you can omit the port number, the default port is 6102, specifying a different port number is only really needed for regtest where multiple makers are running on the same machine).

* After a successful coinswap created with `do-coinswap`, the coins will still be in the wallet. You can send them out somewhere else using the command `direct-send` and providing the coin(s). For example `cargo run -- --wallet-file-name=taker.teleport direct-send sweep <destination-address> 9bfeec..0cc468:0`. Coins in the wallet can be found by running `wallet-balance` as above.
Expand Down

0 comments on commit f9bff3f

Please sign in to comment.