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

feat: add asset proxy #3659

Merged
merged 11 commits into from
Dec 17, 2021

Conversation

stringhandler
Copy link
Collaborator

Add an proxy to forward requests to the asset committee

@stringhandler stringhandler changed the title [wip] feat: add asset proxy feat: add asset proxy Dec 15, 2021
@stringhandler stringhandler marked this pull request as ready for review December 15, 2021 14:51
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

LGTM - the optional keyword in proto3 files may not compile

message Authority {
bytes node_public_key =1;
bytes signature = 2;
optional bytes proxied_by = 3;
Copy link
Member

Choose a reason for hiding this comment

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

I think the optional keyword was taken out in proto3

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I also thought that was the case, but for byte arrays, it converts to an Option<Vec> instead of a Vec so it's easier to test if it was specified. AFAIK optional is still allowed for some types

@@ -69,7 +72,9 @@ impl TariCommsInboundConnectionService {
loop {
futures::select! {
message = inbound_stream.select_next_some() => {
self.forward_message(message).await?;

self.forward_message(message).await?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you haven't run the formatter.

Cifko
Cifko previously approved these changes Dec 17, 2021
Copy link
Contributor

@Cifko Cifko left a comment

Choose a reason for hiding this comment

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

LGTM, untested.
But run the formatter/prettier.

@stringhandler stringhandler merged commit 4da15fc into tari-project:development Dec 17, 2021
@stringhandler stringhandler deleted the mb-asset-proxy branch December 17, 2021 09:25
sdbondi added a commit to sdbondi/tari that referenced this pull request Jan 5, 2022
* development:
  fix: allow 0-conf in blockchain db (tari-project#3680)
  test: fix cucumber WalletQuery.feature (tari-project#3677)
  test: fix `wait for` step (tari-project#3673)
  perf(comms)!: optimise connection establishment (tari-project#3658)
  fix: remove noise negotiation for debugging on bad wire mode (tari-project#3657)
  feat: add follow on checkpoint (tari-project#3676)
  ci: fix tari collectibles build (tari-project#3670)
  feat: example to generate vanity node_ids (tari-project#3654)
  fix: prefer configured seeds over dns seeds (tari-project#3662)
  docs: update RFC-0230_HTLC to use TariScript (tari-project#3622)
  feat: add invoke write method to proxy (tari-project#3667)
  ci: add tauri build (tari-project#3669)
  test: fix cucumber metadata signature (tari-project#3665)
  feat: add asset proxy (tari-project#3659)
  test: fix cucumber (tari-project#3660)
sdbondi added a commit to sdbondi/tari that referenced this pull request Jan 5, 2022
* development:
  fix: allow 0-conf in blockchain db (tari-project#3680)
  test: fix cucumber WalletQuery.feature (tari-project#3677)
  test: fix `wait for` step (tari-project#3673)
  perf(comms)!: optimise connection establishment (tari-project#3658)
  fix: remove noise negotiation for debugging on bad wire mode (tari-project#3657)
  feat: add follow on checkpoint (tari-project#3676)
  ci: fix tari collectibles build (tari-project#3670)
  feat: example to generate vanity node_ids (tari-project#3654)
  fix: prefer configured seeds over dns seeds (tari-project#3662)
  docs: update RFC-0230_HTLC to use TariScript (tari-project#3622)
  feat: add invoke write method to proxy (tari-project#3667)
  ci: add tauri build (tari-project#3669)
  test: fix cucumber metadata signature (tari-project#3665)
  feat: add asset proxy (tari-project#3659)
  test: fix cucumber (tari-project#3660)
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.

3 participants