Skip to content

[wallet + gateway] refactored wallet to use GatewayClient - #682

Merged
patrickkuo merged 4 commits into
mainfrom
pat/wallet_with_gateway_client
Mar 8, 2022
Merged

patrickkuo merged 4 commits into
mainfrom
pat/wallet_with_gateway_client

Conversation

@patrickkuo

@patrickkuo patrickkuo commented Mar 7, 2022 •

Copy link
Copy Markdown
Contributor
  • Added GatewayClient type
  • Refactored wallet to use GatewayClient instead of using ClientAddressManager directly
  • Added GatewayType in config in preparation of different gateway types (rest)
  • ClientAddressManager now creates client state implicitly

@patrickkuo patrickkuo self-assigned this Mar 7, 2022
@patrickkuo
patrickkuo force-pushed the pat/wallet_with_gateway_client branch from 8dd39c7 to 1d99f21 Compare March 7, 2022 16:51
@lxfind

lxfind commented Mar 7, 2022

Copy link
Copy Markdown
Contributor

What's the reason to use GatewayClient instead of ClientAddressManager? Do we expect to have a different implementation of GatewayClient?

@patrickkuo

Copy link
Copy Markdown
Contributor Author

What's the reason to use GatewayClient instead of ClientAddressManager? Do we expect to have a different implementation of GatewayClient?

Yes, we will have a implementation for RestGatewayClient, which will talk to the rest server instead of creating a ClientAddressManager locally

* Refactored wallet to use `GatewayClient` instead of using `ClientAddressManager` directly
* Added GatewayType in config for preparation of different gateway types
* `ClientAddressManager` now creates client state implicitly
@patrickkuo
patrickkuo force-pushed the pat/wallet_with_gateway_client branch from 173d8c9 to c1c1daa Compare March 7, 2022 18:21
@patrickkuo
patrickkuo marked this pull request as ready for review March 7, 2022 18:23
@patrickkuo
patrickkuo requested review from 666lcz, awelc and velvia March 7, 2022 22:34

@lxfind lxfind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for refactoring this!

@patrickkuo
patrickkuo merged commit 47e7bce into main Mar 8, 2022
@patrickkuo
patrickkuo deleted the pat/wallet_with_gateway_client branch March 8, 2022 00:55
mwtian pushed a commit that referenced this pull request Sep 12, 2022
* upgrade chrono to 0.4.20

* fix: fix underflow in debug message

* fix: rename worker_network_concourrent_tasks to worker_network_available_tasks

* feat: add a metered_channel that wraps a tokio::mpsc::{Sender, Receiver} with an IntGauge

* feat: use metered_channel everywhere in the Primary

* fix: move the tx_committed_certificates to be initialized in the node bootstrap

Adjusts the consensus registry on the back end of that.

* fix: add tests for reserve, try_reserve, empty & closed channel behavior
mwtian pushed a commit that referenced this pull request Sep 12, 2022
This is an extension of #682 to the worker
mwtian pushed a commit to mwtian/sui that referenced this pull request Sep 29, 2022
* upgrade chrono to 0.4.20

* fix: fix underflow in debug message

* fix: rename worker_network_concourrent_tasks to worker_network_available_tasks

* feat: add a metered_channel that wraps a tokio::mpsc::{Sender, Receiver} with an IntGauge

* feat: use metered_channel everywhere in the Primary

* fix: move the tx_committed_certificates to be initialized in the node bootstrap

Adjusts the consensus registry on the back end of that.

* fix: add tests for reserve, try_reserve, empty & closed channel behavior
mwtian pushed a commit to mwtian/sui that referenced this pull request Sep 29, 2022
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