Closed Gabriel-Trintinalia closed 1 year ago
I believe that Tessera is creating the client from the config instead of the actual server:
public class RuntimeContextProvider {
...
List<ServerConfig> servers = config.getServerConfigs();
ServerConfig p2pServerContext =
servers.stream()
.filter(s -> s.getApp() == AppType.P2P)
.findFirst()
.orElseThrow(() -> new IllegalStateException("No P2P server configured"));
Client p2pClient = RestClientFactory.create().buildFrom(p2pServerContext);
...
}
Tessera needs java 17 now so this can't be tested locally until Besu has a java 17 docker image
Description
As a user, I want Tessera to use the correct port when I set the port to 0 in the config.
Steps to Reproduce (Bug)
-XoutputServerURIPath
is set.Expected behavior: Tessera to use and propagate the correct server address.
Actual behavior:
However, tessera does not seem to use the correct port:
INFO c.q.t.q.i.RestPayloadPublisher - Publishing message to http://localhost:0/