Browse Source

Remove maker default address

This made only sense during local testing.
new-http-api
Thomas Eizinger 3 years ago
parent
commit
b118ffece5
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 2
      .github/workflows/ci.yml
  2. 2
      daemon/src/taker.rs
  3. 2
      start_all.sh

2
.github/workflows/ci.yml

@ -108,7 +108,7 @@ jobs:
sleep 10s # Wait for maker to start\
# The maker-id is generated from the makers seed found in daemon/util/testnet_seeds/maker_seed
target/debug/taker --data-dir=/tmp/taker --maker-id 10d4ba2ac3f7a22da4009d813ff1bc3f404dfe2cc93a32bedf1512aa9951c95e testnet &
target/debug/taker --data-dir=/tmp/taker --maker localhost:9999 --maker-id 10d4ba2ac3f7a22da4009d813ff1bc3f404dfe2cc93a32bedf1512aa9951c95e testnet &
sleep 10s # Wait for taker to start
curl --fail http://localhost:8000/api/alive

2
daemon/src/taker.rs

@ -31,7 +31,7 @@ const CONNECTION_RETRY_INTERVAL: Duration = Duration::from_secs(5);
#[derive(Parser)]
struct Opts {
/// The IP address of the other party (i.e. the maker).
#[clap(long, default_value = "127.0.0.1:9999")]
#[clap(long)]
maker: SocketAddr,
/// The public key of the maker as a 32 byte hex string.

2
start_all.sh

@ -5,4 +5,4 @@ export RUST_BACKTRACE=1
# A simple command to spin up the complete package, ie. both daemons and frontends.
# A single 'ctrl+c' stops all processes.
# The maker-id is generated from the makers seed found in daemon/util/testnet_seeds/maker_seed
(trap 'kill 0' SIGINT; cargo run --bin maker -- testnet & cargo run --bin taker -- --maker-id 10d4ba2ac3f7a22da4009d813ff1bc3f404dfe2cc93a32bedf1512aa9951c95e testnet -- & yarn --cwd=./maker-frontend dev & yarn --cwd=./taker-frontend dev)
(trap 'kill 0' SIGINT; cargo run --bin maker -- testnet & cargo run --bin taker -- --maker localhost:9999 --maker-id 10d4ba2ac3f7a22da4009d813ff1bc3f404dfe2cc93a32bedf1512aa9951c95e testnet -- & yarn --cwd=./maker-frontend dev & yarn --cwd=./taker-frontend dev)

Loading…
Cancel
Save