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

Make GrpcStubs channel closeable from calling bot #8

Merged
merged 6 commits into from
Jun 26, 2022

Conversation

ghubstan
Copy link
Owner

Each bot has its own gRPC channel and set of service stubs, and a single bot's channel & stubs last the bot's lifetime. However, RegtestTradePaymentSimulator instances are bots too, with their own channels & stubs, and there can be many payment simulator instances during a bot run -- one for each simulated trade. Every RegtestTradePaymentSimulator instance's channel should be closed at the end of each run().

Based on PR #7 branch fix-bugs-related-to-margin-config.

ghubstan added 6 commits June 25, 2022 10:25
- When bot is run from a *nix terminal, password input will not be echoed.
- When bot is run from an IDE, it's virtual terminal will echo the input
  (cannot be avoided).

Validate the input during startup, to fail early instead of waiting for
the right offer to take, then failing to unlock the wallet with an
incorrect password.
Each bot has its own gRPC channel and set of service stubs,
and a single bot's channel & stubs last the bot's lifetime.
However, RegtestTradePaymentSimulator instance is a bot too, with it's
own channel & stubs, which should be closed at the end of each run().
Copy link
Collaborator

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@ripcurlx ripcurlx merged commit 4a6b1a5 into main Jun 26, 2022
@ghubstan ghubstan deleted the close-payment-simulator-bot-grpc-channel branch June 26, 2022 21:31
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

Successfully merging this pull request may close these issues.

2 participants