Skip to content

Commit

Permalink
Merge branch 'e2e_test/relay' into e2e_test/relay-update
Browse files Browse the repository at this point in the history
* e2e_test/relay:
  Self review
  • Loading branch information
bryanchriswhite committed Nov 15, 2023
2 parents 7bc6a26 + 700fd06 commit 3887759
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
6 changes: 0 additions & 6 deletions e2e/tests/relay.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ Feature: Relay Namespace

Scenario: App can send relay to Supplier
Given the user has the pocketd binary installed

# TEMP: DELETE
When the user sends "1000" uPOKT from account "app2" to account "app1"
When the user sends "1000" uPOKT from account "app2" to account "supplier1"
# TEMP: DELETE

And the application "app1" is staked for service "anvil"
And the supplier "supplier1" is staked for service "anvil"
And the session for application "app1" and service "anvil" contains the supplier "supplier1"
Expand Down
10 changes: 1 addition & 9 deletions pkg/appgateserver/jsonrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,7 @@ func (app *appGateServer) handleJSONRPCRelay(
Body: relayRequestReader,
}

// TODO: relayminer is currently named relayers
// application (localhost)
// -> appgate (localhost:42069); configured by the gateway/application **off-chain**
// -> relayminer (supplierURL); advertised **on-chain**
// -> anvil (localhost:8547); configured **behind-the-scenes**; chains.json (v0); currently hard-coded

// Perform the HTTP request to the relayer.
log.Printf("DEBUG: Sending raw payload to signed relay request to %s", supplierUrl)
fmt.Printf("\n~~~~ OLSH %+v \n~~~~\n", relayHTTPRequest)
log.Printf("DEBUG: Sending signed relay request to %s", supplierUrl)
relayHTTPResponse, err := http.DefaultClient.Do(relayHTTPRequest)
if err != nil {
return ErrAppGateHandleRelay.Wrapf("sending relay request: %s", err)
Expand Down

0 comments on commit 3887759

Please sign in to comment.