diff --git a/.env.dev b/.env.dev index e48297659..d40b85238 100644 --- a/.env.dev +++ b/.env.dev @@ -4,7 +4,7 @@ POKTROLLD_HOME=./localnet/poktrolld # The pocket node (validator in the localnet context) -POCKET_NODE=tcp://127.0.0.1:36657 +POCKET_NODE=tcp://127.0.0.1:26657 # TestNet RPC endpoint for validator maintained by Grove. Needs to be updated if there's another "primary" testnet. TESTNET_RPC=https://testnet-validated-validator-rpc.poktroll.com/ APPGATE_SERVER=http://localhost:42069 diff --git a/Makefile b/Makefile index 1363682d7..6525b79b7 100644 --- a/Makefile +++ b/Makefile @@ -11,12 +11,11 @@ SHELL = /bin/sh # endif POKTROLLD_HOME ?= ./localnet/poktrolld -POCKET_NODE ?= tcp://127.0.0.1:36657 # The pocket node (validator in the localnet context) +POCKET_NODE ?= tcp://127.0.0.1:26657 # The pocket node (validator in the localnet context) TESTNET_RPC ?= https://testnet-validated-validator-rpc.poktroll.com/ # TestNet RPC endpoint for validator maintained by Grove. Needs to be update if there's another "primary" testnet. APPGATE_SERVER ?= http://localhost:42069 GATEWAY_URL ?= http://localhost:42079 POCKET_ADDR_PREFIX = pokt -CHAIN_ID = poktroll # The domain ending in ".town" is staging, ".city" is production GROVE_GATEWAY_STAGING_ETH_MAINNET = https://eth-mainnet.rpc.grove.town @@ -526,7 +525,7 @@ gateway_list: ## List all the staked gateways .PHONY: gateway_stake gateway_stake: ## Stake tokens for the gateway specified (must specify the gateway env var) - poktrolld --home=$(POKTROLLD_HOME) tx gateway stake-gateway -y --config $(POKTROLLD_HOME)/config/$(STAKE) --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE) --chain-id $(CHAIN_ID) + poktrolld --home=$(POKTROLLD_HOME) tx gateway stake-gateway -y --config $(POKTROLLD_HOME)/config/$(STAKE) --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE) .PHONY: gateway1_stake gateway1_stake: ## Stake gateway1 @@ -542,7 +541,7 @@ gateway3_stake: ## Stake gateway3 .PHONY: gateway_unstake gateway_unstake: ## Unstake an gateway (must specify the GATEWAY env var) - poktrolld --home=$(POKTROLLD_HOME) tx gateway unstake-gateway -y --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE) --chain-id $(CHAIN_ID) + poktrolld --home=$(POKTROLLD_HOME) tx gateway unstake-gateway -y --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE) .PHONY: gateway1_unstake gateway1_unstake: ## Unstake gateway1 @@ -566,7 +565,7 @@ app_list: ## List all the staked applications .PHONY: app_stake app_stake: ## Stake tokens for the application specified (must specify the APP and SERVICES env vars) - poktrolld --home=$(POKTROLLD_HOME) tx application stake-application -y --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID) + poktrolld --home=$(POKTROLLD_HOME) tx application stake-application -y --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(APP) --node $(POCKET_NODE) .PHONY: app1_stake app1_stake: ## Stake app1 (also staked in genesis) @@ -582,7 +581,7 @@ app3_stake: ## Stake app3 .PHONY: app_unstake app_unstake: ## Unstake an application (must specify the APP env var) - poktrolld --home=$(POKTROLLD_HOME) tx application unstake-application -y --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID) + poktrolld --home=$(POKTROLLD_HOME) tx application unstake-application -y --keyring-backend test --from $(APP) --node $(POCKET_NODE) .PHONY: app1_unstake app1_unstake: ## Unstake app1 @@ -598,7 +597,7 @@ app3_unstake: ## Unstake app3 .PHONY: app_delegate app_delegate: ## Delegate trust to a gateway (must specify the APP and GATEWAY_ADDR env vars). Requires the app to be staked - poktrolld --home=$(POKTROLLD_HOME) tx application delegate-to-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID) + poktrolld --home=$(POKTROLLD_HOME) tx application delegate-to-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE) .PHONY: app1_delegate_gateway1 app1_delegate_gateway1: ## Delegate trust to gateway1 @@ -617,7 +616,7 @@ app3_delegate_gateway3: ## Delegate trust to gateway3 .PHONY: app_undelegate app_undelegate: ## Undelegate trust to a gateway (must specify the APP and GATEWAY_ADDR env vars). Requires the app to be staked - poktrolld --home=$(POKTROLLD_HOME) tx application undelegate-from-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID) + poktrolld --home=$(POKTROLLD_HOME) tx application undelegate-from-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE) .PHONY: app1_undelegate_gateway1 app1_undelegate_gateway1: ## Undelegate trust to gateway1 @@ -644,7 +643,7 @@ supplier_list: ## List all the staked supplier .PHONY: supplier_stake supplier_stake: ## Stake tokens for the supplier specified (must specify the SUPPLIER and SUPPLIER_CONFIG env vars) - poktrolld --home=$(POKTROLLD_HOME) tx supplier stake-supplier -y --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE) --chain-id $(CHAIN_ID) + poktrolld --home=$(POKTROLLD_HOME) tx supplier stake-supplier -y --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE) .PHONY: supplier1_stake supplier1_stake: ## Stake supplier1 (also staked in genesis) @@ -660,7 +659,7 @@ supplier3_stake: ## Stake supplier3 .PHONY: supplier_unstake supplier_unstake: ## Unstake an supplier (must specify the SUPPLIER env var) - poktrolld --home=$(POKTROLLD_HOME) tx supplier unstake-supplier --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE) --chain-id $(CHAIN_ID) + poktrolld --home=$(POKTROLLD_HOME) tx supplier unstake-supplier --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE) .PHONY: supplier1_unstake supplier1_unstake: ## Unstake supplier1 @@ -779,8 +778,7 @@ acc_initialize_pubkeys: ## Make sure the account keeper has public keys for all $(addr) $(PNF_ADDRESS) 1000upokt \ --yes \ --home=$(POKTROLLD_HOME) \ - --node $(POCKET_NODE) \ - --chain-id $(CHAIN_ID);) + --node $(POCKET_NODE);) ######################## ### Warning Messages ### diff --git a/Tiltfile b/Tiltfile index e48fd087a..6036e9c4a 100644 --- a/Tiltfile +++ b/Tiltfile @@ -355,11 +355,11 @@ for x in range(localnet_config["gateways"]["count"]): str(40064 + actor_number) + ":40004", # DLV port. gateway1 - exposes 40065, gateway2 exposes 40066, etc. # Run `curl localhost:PORT` to see the current snapshot of gateway metrics. - str(9089 + actor_number) - + ":9090", # gateway metrics port. gateway1 - exposes 9090, gateway2 exposes 9091, etc. + str(9059 + actor_number) + + ":9090", # gateway metrics port. gateway1 - exposes 9060, gateway2 exposes 9061, etc. # Use with pprof like this: `go tool pprof -http=:3333 http://localhost:6090/debug/pprof/goroutine` - str(6089 + actor_number) - + ":6060", # gateway metrics port. gateway1 - exposes 6090, gateway2 exposes 6091, etc. + str(6059 + actor_number) + + ":6060", # gateway metrics port. gateway1 - exposes 6060, gateway2 exposes 6061, etc. ], ) @@ -367,9 +367,9 @@ k8s_resource( "validator", labels=["pocket_network"], port_forwards=[ - "36657", - "36658", - "40004", + "26657", # RPC + "9090", # the gRPC server address + "40004", # use with `dlv` when it's turned on in `localnet_config.yaml` # Use with pprof like this: `go tool pprof -http=:3333 http://localhost:6061/debug/pprof/goroutine` "6061:6060", ], diff --git a/docusaurus/docs/develop/developer_guide/quickstart.md b/docusaurus/docs/develop/developer_guide/quickstart.md index f7896032c..9dda6519b 100644 --- a/docusaurus/docs/develop/developer_guide/quickstart.md +++ b/docusaurus/docs/develop/developer_guide/quickstart.md @@ -176,19 +176,19 @@ you can click in the top left corner to view its [grafana dashboard](http://loca You can query the status of the blockchain using `poktrolld` by running: ```bash -poktrolld status --node=tcp://127.0.0.1:36657 | jq +poktrolld status --node=tcp://127.0.0.1:26657 | jq ``` Alternatively, you use the [CometBFT](https://github.com/cometbft/cometbft) status directly at: ```bash -curl -s -X POST localhost:36657/status | jq +curl -s -X POST localhost:26657/status | jq ``` Or at latest block at: ```bash -curl -s -X POST localhost:36657/block | jq +curl -s -X POST localhost:26657/block | jq ``` For example, you can get the height of the blockchain by visiting the @@ -196,7 +196,7 @@ For example, you can get the height of the blockchain by visiting the or from the CLI like so: ```bash -curl -s -X POST localhost:36657/block | jq '.result.block.last_commit.height' +curl -s -X POST localhost:26657/block | jq '.result.block.last_commit.height' ``` ## 2. Fund New Accounts @@ -276,7 +276,7 @@ You can send some uPOKT to your `shannon_supplier` by running: poktrolld \ tx bank send \ faucet $SHANNON_SUPPLIER 420000000000069upokt \ - --node tcp://127.0.0.1:36657 \ + --node tcp://127.0.0.1:26657 \ --home=./localnet/poktrolld ``` @@ -299,7 +299,7 @@ Let's do the same thing for the `shannon_application`: poktrolld \ tx bank send \ faucet $SHANNON_APPLICATION 420000000000069upokt \ - --node tcp://127.0.0.1:36657 \ + --node tcp://127.0.0.1:26657 \ --home=./localnet/poktrolld ``` @@ -382,7 +382,7 @@ poktrolld \ --config shannon_supplier_config.yaml \ --keyring-backend test \ --from shannon_supplier \ - --node tcp://127.0.0.1:36657 \ + --node tcp://127.0.0.1:26657 \ --home=./localnet/poktrolld \ --yes ``` @@ -390,7 +390,7 @@ poktrolld \ And verify that the supplier is now staked with: ```bash -poktrolld query supplier show-supplier $SHANNON_SUPPLIER --node tcp://127.0.0.1:36657 +poktrolld query supplier show-supplier $SHANNON_SUPPLIER --node tcp://127.0.0.1:26657 ``` ### 3.4 Prepare the RelayMiner configuration @@ -409,9 +409,9 @@ metrics: enabled: true addr: :9090 pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 - tx_node_rpc_url: tcp://127.0.0.1:36657 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 + tx_node_rpc_url: tcp://127.0.0.1:26657 suppliers: - service_id: anvil listen_url: http://localhost:6942 @@ -488,14 +488,14 @@ poktrolld --home=./localnet/poktrolld \ --config shannon_app_config.yaml \ --keyring-backend test \ --from shannon_application \ - --node tcp://127.0.0.1:36657 \ + --node tcp://127.0.0.1:26657 \ --yes ``` And verify that the application is now staked with: ```bash -poktrolld query application show-application $SHANNON_APPLICATION --node tcp://127.0.0.1:36657 +poktrolld query application show-application $SHANNON_APPLICATION --node tcp://127.0.0.1:26657 ``` You can also you re-run, `make app_list` you should see that `SHANNON_APPLICATION` is now staked as an app: @@ -510,8 +510,8 @@ The following example should get you started: ```yaml cat <> shannon_appgate_config.yaml -query_node_rpc_url: tcp://127.0.0.1:36657 -query_node_grpc_url: tcp://127.0.0.1:36658 +query_node_rpc_url: tcp://127.0.0.1:26657 +query_node_grpc_url: tcp://127.0.0.1:9090 self_signing: true signing_key: shannon_application listening_endpoint: http://localhost:42042 @@ -535,7 +535,7 @@ And the start the appgate server locally: poktrolld appgate-server \ --config shannon_appgate_config.yaml \ --keyring-backend test \ - --node tcp://127.0.0.1:36657 \ + --node tcp://127.0.0.1:26657 \ --home=./localnet/poktrolld ``` diff --git a/docusaurus/docs/develop/packages/client_events.md b/docusaurus/docs/develop/packages/client_events.md index a3e5ff989..8bf7c4cdf 100644 --- a/docusaurus/docs/develop/packages/client_events.md +++ b/docusaurus/docs/develop/packages/client_events.md @@ -280,7 +280,7 @@ const ( // And: https://docs.cosmos.network/v0.47/learn/advanced/events#default-events eventQueryString = "message.action='messageActionName'" // Define the websocket URL the EventsQueryClient will subscribe to - cometWebsocketURL = "ws://example.com:36657/websocket" + cometWebsocketURL = "ws://example.com:26657/websocket" // the amount of events we want before they are emitted replayObsBufferSize = 1 ) diff --git a/docusaurus/docs/operate/configs/app_staking_config.md b/docusaurus/docs/operate/configs/app_staking_config.md index 2f2733c99..851999aae 100644 --- a/docusaurus/docs/operate/configs/app_staking_config.md +++ b/docusaurus/docs/operate/configs/app_staking_config.md @@ -38,7 +38,7 @@ poktrolld tx application stake-application \ --config ./stake_config.yaml \ --keyring-backend test \ --from application1 \ - --node tcp://poktroll-node:36657 + --node tcp://poktroll-node:26657 ``` ## Configuration diff --git a/docusaurus/docs/operate/configs/gateway_staking_config.md b/docusaurus/docs/operate/configs/gateway_staking_config.md index b7c0db4cb..90d363b51 100644 --- a/docusaurus/docs/operate/configs/gateway_staking_config.md +++ b/docusaurus/docs/operate/configs/gateway_staking_config.md @@ -37,7 +37,7 @@ poktrolld tx gateway stake-gateway \ --config ./stake_config.yaml \ --keyring-backend test \ --from gateway1 \ - --node tcp://poktroll-node:36657 + --node tcp://poktroll-node:26657 ``` ## Configuration diff --git a/docusaurus/docs/operate/configs/supplier_staking_config.md b/docusaurus/docs/operate/configs/supplier_staking_config.md index 900fbb85c..1bd9afde0 100644 --- a/docusaurus/docs/operate/configs/supplier_staking_config.md +++ b/docusaurus/docs/operate/configs/supplier_staking_config.md @@ -38,7 +38,7 @@ poktrolld tx supplier stake-supplier \ --config ./stake_config.yaml \ --keyring-backend test \ --from supplier1 \ - --node tcp://poktroll-node:36657 + --node tcp://poktroll-node:26657 ``` ## Configuration diff --git a/e2e/tests/node.go b/e2e/tests/node.go index b41635939..7a55626ec 100644 --- a/e2e/tests/node.go +++ b/e2e/tests/node.go @@ -17,7 +17,7 @@ var ( // defaultRPCURL used by pocketdBin to run remote commands defaultRPCURL = os.Getenv("POCKET_NODE") // defaultRPCPort is the default RPC port that pocketd listens on - defaultRPCPort = 36657 + defaultRPCPort = 26657 // defaultRPCHost is the default RPC host that pocketd listens on defaultRPCHost = "127.0.0.1" // defaultHome is the default home directory for pocketd diff --git a/load-testing/tests/relays_stress_helpers_test.go b/load-testing/tests/relays_stress_helpers_test.go index 7a31ff462..d8bf7b2d8 100644 --- a/load-testing/tests/relays_stress_helpers_test.go +++ b/load-testing/tests/relays_stress_helpers_test.go @@ -915,7 +915,7 @@ func (s *relaysSuite) sendStakeGatewaysTxs( // signWithRetries signs the transaction with the keyName provided, retrying // up to maxRetries times if the signing fails. // TODO_MAINNET: SignTx randomly fails at retrieving the account info with -// the error post failed: Post "http://localhost:36657": EOF. This might be due to +// the error post failed: Post "http://localhost:26657": EOF. This might be due to // concurrent requests trying to access the same account info and needs to be investigated. func (s *relaysSuite) signWithRetries( actorKeyName string, @@ -955,7 +955,7 @@ func (s *relaysSuite) sendPendingMsgsTx(actor *accountInfo) { require.NotNil(s, keyRecord) // TODO_HACK: Sometimes SignTx fails at retrieving the account info with - // the error post failed: Post "http://localhost:36657": EOF. + // the error post failed: Post "http://localhost:26657": EOF. // A retry mechanism is added to avoid this issue. err = s.signWithRetries(keyRecord.Name, txBuilder, signTxMaxRetries) require.NoError(s, err) diff --git a/localnet/kubernetes/values-appgateserver.yaml b/localnet/kubernetes/values-appgateserver.yaml index dd6400ae1..1375175b4 100644 --- a/localnet/kubernetes/values-appgateserver.yaml +++ b/localnet/kubernetes/values-appgateserver.yaml @@ -1,6 +1,6 @@ config: - query_node_rpc_url: tcp://validator-poktroll-validator:36657 - query_node_grpc_url: tcp://validator-poktroll-validator:36658 + query_node_rpc_url: tcp://validator-poktroll-validator:26657 + query_node_grpc_url: tcp://validator-poktroll-validator:9090 metrics: enabled: true addr: :9090 diff --git a/localnet/kubernetes/values-gateway.yaml b/localnet/kubernetes/values-gateway.yaml index 3560905dc..fe4d46d79 100644 --- a/localnet/kubernetes/values-gateway.yaml +++ b/localnet/kubernetes/values-gateway.yaml @@ -1,6 +1,6 @@ config: - query_node_rpc_url: tcp://validator-poktroll-validator:36657 - query_node_grpc_url: tcp://validator-poktroll-validator:36658 + query_node_rpc_url: tcp://validator-poktroll-validator:26657 + query_node_grpc_url: tcp://validator-poktroll-validator:9090 self_signing: false metrics: enabled: true diff --git a/localnet/kubernetes/values-relayminer-1.yaml b/localnet/kubernetes/values-relayminer-1.yaml index d9e57ce77..18d1c759a 100644 --- a/localnet/kubernetes/values-relayminer-1.yaml +++ b/localnet/kubernetes/values-relayminer-1.yaml @@ -1,4 +1,8 @@ config: + # TODO_TECHDEBT(@okdas): remove `signing_key_name` - which is currently present + # for backwards-compatibity with the current helm-chart. + signing_key_name: supplier1 + default_signing_key_names: [supplier1] suppliers: - service_id: anvil diff --git a/localnet/kubernetes/values-relayminer-2.yaml b/localnet/kubernetes/values-relayminer-2.yaml index 6c46cc270..de12138d4 100644 --- a/localnet/kubernetes/values-relayminer-2.yaml +++ b/localnet/kubernetes/values-relayminer-2.yaml @@ -1,4 +1,8 @@ config: + # TODO_TECHDEBT(@okdas): remove `signing_key_name` - which is currently present + # for backwards-compatibity with the current helm-chart. + signing_key_name: supplier2 + default_signing_key_names: [supplier2] suppliers: - service_id: anvil diff --git a/localnet/kubernetes/values-relayminer-3.yaml b/localnet/kubernetes/values-relayminer-3.yaml index 3a89aa079..624aaa1bf 100644 --- a/localnet/kubernetes/values-relayminer-3.yaml +++ b/localnet/kubernetes/values-relayminer-3.yaml @@ -1,4 +1,8 @@ config: + # TODO_TECHDEBT(@okdas): remove `signing_key_name` - which is currently present + # for backwards-compatibity with the current helm-chart. + signing_key_name: supplier3 + default_signing_key_names: [supplier3] suppliers: - service_id: anvil diff --git a/localnet/kubernetes/values-relayminer-common.yaml b/localnet/kubernetes/values-relayminer-common.yaml index a8070be01..579e5802a 100644 --- a/localnet/kubernetes/values-relayminer-common.yaml +++ b/localnet/kubernetes/values-relayminer-common.yaml @@ -4,9 +4,9 @@ config: enabled: true addr: :9090 pocket_node: - query_node_rpc_url: tcp://validator-poktroll-validator:36657 - query_node_grpc_url: tcp://validator-poktroll-validator:36658 - tx_node_rpc_url: tcp://validator-poktroll-validator:36657 + query_node_rpc_url: tcp://validator-poktroll-validator:26657 + query_node_grpc_url: tcp://validator-poktroll-validator:9090 + tx_node_rpc_url: tcp://validator-poktroll-validator:26657 suppliers: [] pprof: enabled: true diff --git a/localnet/poktrolld/config/appgate_server_config.yaml b/localnet/poktrolld/config/appgate_server_config.yaml index 146528551..16c48b79c 100644 --- a/localnet/poktrolld/config/appgate_server_config.yaml +++ b/localnet/poktrolld/config/appgate_server_config.yaml @@ -1,5 +1,5 @@ -query_node_rpc_url: tcp://poktroll-validator:36657 -query_node_grpc_url: tcp://poktroll-validator:36658 +query_node_rpc_url: tcp://poktroll-validator:26657 +query_node_grpc_url: tcp://poktroll-validator:9090 signing_key: app1 self_signing: true listening_endpoint: http://localhost:42069 diff --git a/localnet/poktrolld/config/appgate_server_config_example.yaml b/localnet/poktrolld/config/appgate_server_config_example.yaml index c14a15b83..8c93c006c 100644 --- a/localnet/poktrolld/config/appgate_server_config_example.yaml +++ b/localnet/poktrolld/config/appgate_server_config_example.yaml @@ -1,8 +1,8 @@ # Pocket node URL that exposes CometBFT JSON-RPC API. # This can be used by the Cosmos client SDK, event subscriptions, etc... -query_node_rpc_url: tcp://poktroll-validator:36657 +query_node_rpc_url: tcp://poktroll-validator:26657 # Pocket node URL that exposes the Cosmos gRPC service, dedicated to querying purposes. -query_node_grpc_url: tcp://poktroll-validator:36658 +query_node_grpc_url: tcp://poktroll-validator:9090 # The name of the key (in the keyring) that will be used to sign relays signing_key: app1 # Whether the server should sign all incoming requests with its own ring (for applications) diff --git a/localnet/poktrolld/config/appgate_server_config_localnet_vscode.yaml b/localnet/poktrolld/config/appgate_server_config_localnet_vscode.yaml index cc3aa6bb0..7c7e475da 100644 --- a/localnet/poktrolld/config/appgate_server_config_localnet_vscode.yaml +++ b/localnet/poktrolld/config/appgate_server_config_localnet_vscode.yaml @@ -1,5 +1,5 @@ -query_node_rpc_url: tcp://localhost:36657 -query_node_grpc_url: tcp://localhost:36658 +query_node_rpc_url: tcp://localhost:26657 +query_node_grpc_url: tcp://localhost:9090 signing_key: app1 self_signing: true listening_endpoint: http://0.0.0.0:42069 diff --git a/localnet/poktrolld/config/relayminer_config.yaml b/localnet/poktrolld/config/relayminer_config.yaml index 6ddf220e9..236425e1e 100644 --- a/localnet/poktrolld/config/relayminer_config.yaml +++ b/localnet/poktrolld/config/relayminer_config.yaml @@ -4,9 +4,9 @@ metrics: enabled: true addr: :9090 pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 - tx_node_rpc_url: tcp://127.0.0.1:36657 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 + tx_node_rpc_url: tcp://127.0.0.1:26657 suppliers: - service_id: anvil listen_url: http://localhost:6942 diff --git a/localnet/poktrolld/config/relayminer_config_full_example.yaml b/localnet/poktrolld/config/relayminer_config_full_example.yaml index b8caea566..71af84f27 100644 --- a/localnet/poktrolld/config/relayminer_config_full_example.yaml +++ b/localnet/poktrolld/config/relayminer_config_full_example.yaml @@ -21,11 +21,11 @@ pocket_node: # Pocket node URL exposing the CometBFT JSON-RPC API. # Used by the Cosmos client SDK, event subscriptions, etc. # If unspecified, defaults to `tx_node_rpc_url`. - query_node_rpc_url: tcp://poktroll-validator:36657 + query_node_rpc_url: tcp://poktroll-validator:26657 # Pocket node URL exposing the Cosmos gRPC service for querying purposes. - query_node_grpc_url: tcp://poktroll-validator:36658 + query_node_grpc_url: tcp://poktroll-validator:9090 # Pocket node URL exposing the CometRPC service. - tx_node_rpc_url: tcp://poktroll-validator:36658 + tx_node_rpc_url: tcp://poktroll-validator:9090 # Suppliers are different services offered on Pocket Network, # proxied through Relay Miner. diff --git a/pkg/appgateserver/config/appgate_configs_reader_test.go b/pkg/appgateserver/config/appgate_configs_reader_test.go index bc2c88472..f1faafa12 100644 --- a/pkg/appgateserver/config/appgate_configs_reader_test.go +++ b/pkg/appgateserver/config/appgate_configs_reader_test.go @@ -26,8 +26,8 @@ func Test_ParseAppGateConfigs(t *testing.T) { desc: "valid: AppGateServer config", inputConfigYAML: ` - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 signing_key: app1 self_signing: true listening_endpoint: http://localhost:42069 @@ -35,8 +35,8 @@ func Test_ParseAppGateConfigs(t *testing.T) { expectedErr: nil, expectedConfig: &config.AppGateServerConfig{ - QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36657"}, - QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36658"}, + QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:26657"}, + QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:9090"}, SigningKey: "app1", SelfSigning: true, ListeningEndpoint: &url.URL{Scheme: "http", Host: "localhost:42069"}, @@ -46,16 +46,16 @@ func Test_ParseAppGateConfigs(t *testing.T) { desc: "valid: AppGateServer config with undefined self signing", inputConfigYAML: ` - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 signing_key: app1 listening_endpoint: http://localhost:42069 `, expectedErr: nil, expectedConfig: &config.AppGateServerConfig{ - QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36657"}, - QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36658"}, + QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:26657"}, + QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:9090"}, SigningKey: "app1", SelfSigning: false, ListeningEndpoint: &url.URL{Scheme: "http", Host: "localhost:42069"}, @@ -73,8 +73,8 @@ func Test_ParseAppGateConfigs(t *testing.T) { desc: "invalid: no signing key", inputConfigYAML: ` - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 # NB: explicitly missing signing key self_signing: true listening_endpoint: http://localhost:42069 @@ -86,8 +86,8 @@ func Test_ParseAppGateConfigs(t *testing.T) { desc: "invalid: invalid listening endpoint", inputConfigYAML: ` - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 signing_key: app1 self_signing: true listening_endpoint: l&ocalhost:42069 @@ -99,8 +99,8 @@ func Test_ParseAppGateConfigs(t *testing.T) { desc: "invalid: invalid query node grpc url", inputConfigYAML: ` - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: 1&27.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: 1&27.0.0.1:9090 signing_key: app1 self_signing: true listening_endpoint: http://localhost:42069 @@ -112,7 +112,7 @@ func Test_ParseAppGateConfigs(t *testing.T) { desc: "invalid: missing query node grpc url", inputConfigYAML: ` - query_node_rpc_url: tcp://127.0.0.1:36657 + query_node_rpc_url: tcp://127.0.0.1:26657 # NB: explicitly missing query_node_grpc_url signing_key: app1 self_signing: true @@ -125,8 +125,8 @@ func Test_ParseAppGateConfigs(t *testing.T) { desc: "invalid: invalid query node rpc url", inputConfigYAML: ` - query_node_rpc_url: 1&27.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: 1&27.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 signing_key: app1 self_signing: true listening_endpoint: http://localhost:42069 @@ -139,7 +139,7 @@ func Test_ParseAppGateConfigs(t *testing.T) { inputConfigYAML: ` # NB: explicitly missing query_node_rpc_url - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_grpc_url: tcp://127.0.0.1:9090 signing_key: app1 self_signing: true listening_endpoint: http://localhost:42069 diff --git a/pkg/client/events/replay_client_example_test.go b/pkg/client/events/replay_client_example_test.go index d11685de2..9245cf839 100644 --- a/pkg/client/events/replay_client_example_test.go +++ b/pkg/client/events/replay_client_example_test.go @@ -17,7 +17,7 @@ const ( // And: https://docs.cosmos.network/v0.47/learn/advanced/events#default-events eventQueryString = "message.action='messageActionName'" // Define the websocket URL the EventsQueryClient will subscribe to - cometWebsocketURL = "ws://example.com:36657/websocket" + cometWebsocketURL = "ws://example.com:26657/websocket" // the amount of events we want before they are emitted replayObsBufferSize = 1 ) diff --git a/pkg/relayer/config/relayminer_configs_reader_test.go b/pkg/relayer/config/relayminer_configs_reader_test.go index bb8b6541c..e7ba0c2b9 100644 --- a/pkg/relayer/config/relayminer_configs_reader_test.go +++ b/pkg/relayer/config/relayminer_configs_reader_test.go @@ -35,8 +35,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -57,8 +57,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { expectedErr: nil, expectedConfig: &config.RelayMinerConfig{ PocketNode: &config.RelayMinerPocketNodeConfig{ - QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36657"}, - QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36658"}, + QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:26657"}, + QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:9090"}, TxNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36659"}, }, DefaultSigningKeyNames: []string{"supplier1"}, @@ -248,8 +248,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -277,8 +277,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { expectedErr: nil, expectedConfig: &config.RelayMinerConfig{ PocketNode: &config.RelayMinerPocketNodeConfig{ - QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36657"}, - QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36658"}, + QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:26657"}, + QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:9090"}, TxNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36659"}, }, DefaultSigningKeyNames: []string{"supplier1"}, @@ -326,7 +326,7 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -345,7 +345,7 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { expectedConfig: &config.RelayMinerConfig{ PocketNode: &config.RelayMinerPocketNodeConfig{ QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36659"}, - QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36658"}, + QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:9090"}, TxNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36659"}, }, DefaultSigningKeyNames: []string{"supplier1"}, @@ -377,8 +377,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -395,8 +395,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { expectedErr: nil, expectedConfig: &config.RelayMinerConfig{ PocketNode: &config.RelayMinerPocketNodeConfig{ - QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36657"}, - QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36658"}, + QueryNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:26657"}, + QueryNodeGRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:9090"}, TxNodeRPCUrl: &url.URL{Scheme: "tcp", Host: "127.0.0.1:36659"}, }, DefaultSigningKeyNames: []string{"supplier1"}, @@ -429,8 +429,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: &tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -450,9 +450,9 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 + query_node_rpc_url: tcp://127.0.0.1:26657 # explicitly omitted tx node grpc url - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_grpc_url: tcp://127.0.0.1:9090 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores suppliers: @@ -470,8 +470,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: &tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: &tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -492,8 +492,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: &tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: &tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -515,7 +515,7 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: # explicitly omitted query node rpc url - query_node_rpc_url: tcp://127.0.0.1:36657 + query_node_rpc_url: tcp://127.0.0.1:26657 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -536,8 +536,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 # explicitly omitted signing key name smt_store_path: smt_stores @@ -558,8 +558,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] # explicitly omitted smt store path @@ -580,8 +580,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -602,8 +602,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -623,8 +623,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -644,8 +644,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -666,8 +666,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -688,8 +688,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -710,8 +710,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores @@ -731,8 +731,8 @@ func Test_ParseRelayMinerConfigs(t *testing.T) { inputConfigYAML: ` pocket_node: - query_node_rpc_url: tcp://127.0.0.1:36657 - query_node_grpc_url: tcp://127.0.0.1:36658 + query_node_rpc_url: tcp://127.0.0.1:26657 + query_node_grpc_url: tcp://127.0.0.1:9090 tx_node_rpc_url: tcp://127.0.0.1:36659 default_signing_key_names: [ supplier1 ] smt_store_path: smt_stores diff --git a/testutil/testclient/localnet.go b/testutil/testclient/localnet.go index 4e751dc49..354a1dd28 100644 --- a/testutil/testclient/localnet.go +++ b/testutil/testclient/localnet.go @@ -21,10 +21,10 @@ import ( var ( // CometLocalTCPURL provides a default URL pointing to the localnet TCP endpoint. - CometLocalTCPURL = "tcp://localhost:36657" + CometLocalTCPURL = "tcp://localhost:26657" // CometLocalWebsocketURL provides a default URL pointing to the localnet websocket endpoint. - CometLocalWebsocketURL = "ws://localhost:36657/websocket" + CometLocalWebsocketURL = "ws://localhost:26657/websocket" // TxConfig provided by app.AppConfig(), intended as a convenience for use in tests. TxConfig client.TxConfig