Repository navigation
UTB parity 1/4: network names (TESTNET2) and the X-SDK-Version header - #1
Conversation
…rsion header java/<Gradle version> on every HTTP call, with override and disable TESTNET is removed with no constant for the old testnet; id 2 stays a valid unnamed id. SdkVersion is generated from the Gradle project version. SdkVersionHeader (default, of(value), disabled) is carried by JsonRpcHttpTransport, so every call, and the trust-base GET of a later PR, sends it. Wire tests for default, custom value, disabled and rejected values.
|
java#1 at d28702d: no blockers. APPROVE once CI is green (this PR has no CI run yet; I'm closing and reopening it to trigger one). |
|
APPROVE at d28702d, for the owner's list. CI |
Owner §51, plan briefs/java-utb-parity-plan.md, PR 1. Mirrors JS
SdkVersion.ts,NetworkId.ts,AggregatorClient.ts,JsonRpcHttpTransport.tsand Rustnetwork_id.rs,client/http.rs.NetworkId.TESTNET2(4) added;TESTNET(2) removed with no alias.fromIdaccepts any valid id (2 stays an unnamed valid id). README updated.SdkVersion.VERSIONis generated from the Gradle project version (taskgenerateSdkVersion); headerX-SDK-Version: java/<version>on every call ofJsonRpcHttpTransport.SdkVersionHeader.sdkDefault()/of(value)/disabled();ofaccepts printable ASCII only. NewJsonRpcAggregatorClientconstructor takes the setting; existing constructors keep the default (on).Evidence:
./gradlew test checkstyleMain animalsnifferMainunder Temurin 11: BUILD SUCCESSFUL (checkstyle only prints pre-existing import-order warnings).Not merged by me; owner list.