-
Notifications
You must be signed in to change notification settings - Fork 420
feat: enable block api and block api proxy service (standalone) #4580
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
Conversation
Do you want a default address/port set for the core grpc server in app/default_overrides? diff --git a/app/default_overrides.go b/app/default_overrides.go
index e187647e..32167a5b 100644
--- a/app/default_overrides.go
+++ b/app/default_overrides.go
@@ -257,6 +257,7 @@ func DefaultConsensusConfig() *tmcfg.Config {
// Set broadcast timeout to be 50 seconds in order to avoid timeouts for long block times
cfg.RPC.TimeoutBroadcastTxCommit = 50 * time.Second
cfg.RPC.MaxBodyBytes = int64(8388608) // 8 MiB
+ cfg.RPC.GRPCListenAddress = "tcp://0.0.0.0:9099"
cfg.Mempool.TTLNumBlocks = 12
cfg.Mempool.TTLDuration = 75 * time.Second |
📝 WalkthroughWalkthroughThe changes remove several dependencies from the Changes
Sequence Diagram(s)sequenceDiagram
participant TestNode as Tendermint Node
participant GRPCServer as gRPC Server
participant BlockAPI as BlockAPI
TestNode->>TestNode: ConfigureRPC()
Note right of TestNode: Returns coreEnv
TestNode->>GRPCServer: StartGRPCServer(coreEnv)
GRPCServer->>BlockAPI: Register BlockAPI(coreEnv)
GRPCServer->>BlockAPI: Start block event listener (goroutine)
GRPCServer->>GRPCServer: Start gRPC server (blocking)
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (1.64.8)Error: you are using a configuration file for golangci-lint v2 with golangci-lint v1: please use golangci-lint v2 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Looks like there is tests failing all of a sudden. Going to look into it. edit; fixed |
Looks like the tests are still failing |
yeah, they passed in a3e6352 but adding a stop to the blockAPI listener seems to have exploded things. Working on getting this resolved asap |
💀 picking up new tag with commission changes causing other test failures... |
Overview
Updates dependencies to enable core block api (in-process) and block api proxy service (standalone).