You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getLedgerEntries: optionally use high-performance Core server (#353)
* Replace getLedgerEntries DB queries with Core fetches
* Add infrastructure for testing the new Core http query server
* Sort entries in response according to request order
* Only test the query server from protocol 23 onwards
* Enable debug printouts for integration tests
* Make sure all ports are allocated at once to minimize clashes
---------
Co-authored-by: Alfonso Acosta <[email protected]>
Usage: "HTTP port for Captive Core to listen on (0 disables the HTTP server)",
86
87
ConfigKey: &cfg.CaptiveCoreHTTPPort,
87
-
DefaultValue: uint(11626),
88
+
DefaultValue: uint16(defaultCaptiveCoreHTTPPort),
89
+
},
90
+
{
91
+
Name: "stellar-captive-core-http-query-port",
92
+
Usage: "HTTP port for Captive Core to listen on for high-performance queries like /getledgerentry (0 disables the HTTP server, must not conflict with CAPTIVE_CORE_HTTP_PORT)",
93
+
ConfigKey: &cfg.CaptiveCoreHTTPQueryPort,
94
+
DefaultValue: uint16(0), // Disabled by default, although it normally uses 11628
0 commit comments