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

Separate client and server #109

Closed
ethanfrey opened this issue Jun 15, 2017 · 3 comments
Closed

Separate client and server #109

ethanfrey opened this issue Jun 15, 2017 · 3 comments

Comments

@ethanfrey
Copy link
Contributor

Basecoin binary with all server side stuff (including relay)

Basecli binary with all client side stuff.

Everything that doesn't involve a full-node needs proofs.

@ethanfrey ethanfrey added the 0.6 label Jun 15, 2017
@ethanfrey
Copy link
Contributor Author

Big cleanup here as part of #115
Just need to port basecoin tx ibc register to basecli

@ethanfrey
Copy link
Contributor Author

Okay, with @ebuchman suggestion will move it...

basecoin relay init
basecoin relay start

no basecoin tx any more.

basecoin relay init will do something like:

  basecoin tx ibc --amount 10mycoin --from=$RELAY_KEY --chain_id=$CHAIN_ID_2 \
    --node=tcp://localhost:${PORT_2} \
    register --ibc_chain_id=$CHAIN_ID_1 --genesis=$BASE_DIR_1/server/genesis.json \

  basecoin tx ibc --amount 10mycoin --from=$RELAY_KEY --chain_id=$CHAIN_ID_1 \
    --node=tcp://localhost:${PORT_1} \
    register --ibc_chain_id=$CHAIN_ID_2 --genesis=$BASE_DIR_2/server/genesis.json \

@ethanfrey
Copy link
Contributor Author

ethanfrey commented Jun 16, 2017

This all got wrapped up by a57e2d3

Lots of flags, but seems good. From the test code:

  # initialize the relay (register both chains)
  ${SERVER_EXE} relay init --chain1-id=$CHAIN_ID_1 --chain2-id=$CHAIN_ID_2 \
    --chain1-addr=tcp://localhost:${PORT_1} --chain2-addr=tcp://localhost:${PORT_2} \
    --genesis1=${BASE_DIR_1}/server/genesis.json --genesis2=${BASE_DIR_2}/server/genesis.json \
    --from=$RELAY_KEY > ${BASE_DIR_1}/../relay.log &

  # now start the relay (constantly send packets)
  ${SERVER_EXE} relay start --chain1-id=$CHAIN_ID_1 --chain2-id=$CHAIN_ID_2 \
    --chain1-addr=tcp://localhost:${PORT_1} --chain2-addr=tcp://localhost:${PORT_2} \
    --from=$RELAY_KEY > ${BASE_DIR_1}/../relay.log &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant