This release introduces two notable features:
- Bridge node <> core endpoint sync over gRPC
- Archival trimming of historic block files
Bridge node sync over gRPC
⚠️ ⚠️ ⚠️
In this release, bridge nodes (BNs) will no longer use RPC for syncing against the given core endpoint. It will now use gRPC via #3998.
Please make sure to pass a gRPC compatible (v3.3.0-arabica) core endpoint, passing the port via the new --core.port
flag. The --core.grpc.port
flag is now deprecated.
This also means there is no longer a RPCPort
field in the core
config. Instead, it is just Port
which refers to the gRPC
port of the core node.
⚠️ ⚠️ ⚠️
Additionally, it's possible to configure TLS for the gRPC connection via the following new flags:
--core.tls Specifies whether TLS is enabled or not. Default: false
--core.xtoken.path string specifies the file path to the JSON file containing the X-Token for gRPC authentication. The JSON file should have a key-value pair where the key is 'x-token' and the value is the authentication token. NOTE: the path is parsed only if coreTLS enabled.If left empty, the client will not include the X-Token in its requests.
Archival trimming of historic block files
For archival node runners (both full node and bridge node), archival trimming will now be enabled by default, cutting archival node disk use for historic blocks in roughly half via #4028.
Note that the previous shwap release contains a condition to prevent nodes freshly syncing from storing the fourth quadrant files (.q4
files) for historic blocks that are outside the sampling window, but did not contain the functionality to clean up .q4
files once a block becomes freshly outdated, so disk use reductions are noticed only for the period between the completed full sync --> now.
What's Changed
- misc!(flags): rename core.grpc.port to core.port by @vgonkivs in #4059
- chore(ci): fix job name by @cristaloleg in #4061
- misc(state/core_accessor): add retry logic for creating a txClient by @vgonkivs in #4053
- deps(go.mod): bump go-header v0.6.4 by @cristaloleg in #4060
- deps(go.mod): bump quic-go v0.49.0 by @cristaloleg in #4062
Full Changelog: v0.21.2-arabica...v0.21.3-arabica