Skip to content

test: set package_dialect on the header metrics RpcContext - #1213

Merged
reardencode merged 1 commit into
masterfrom
cursor/fix-rpccontext-package-dialect-6048
Oct 25, 2026
Merged

reardencode merged 1 commit into
masterfrom
cursor/fix-rpccontext-package-dialect-6048

Conversation

@reardencode

Copy link
Copy Markdown
Owner

#1204 and #1211 merged one after the other. Git merged them without a textual conflict, and master 914e32ec does not compile the node tests.

#1204 added crates/rbitcoin-node/tests/health/metrics.rs, which builds an RpcContext literal for getblockchaininfo. #1211 added package_dialect to RpcContext (the RBITCOIN_RPC_PACKAGE_DIALECT knob, passed in through NodeEnv) and set that field to false on the other test literals. This initializer still omitted the field, so rustc reports error[E0063]: missing field package_dialect.

The literal now sets package_dialect: false, the same off default as those other tests. The other files #1204 added already include the NodeEnv, NodeConfig, and ChainHub fields #1211 added, and they do not call sh_force_rebuild(), bq_assign_stop_bytes(), or the env locks that pull removed.

cargo check -p rbitcoin-node --tests and cargo clippy -p rbitcoin-node --all-targets -- -D warnings are green locally. Workspace tests stay on GitHub Actions.

Open in Web Open in Cursor 

#1204 built an RpcContext literal in the health metrics test. #1211
added package_dialect to RpcContext and updated the other test
literals to false. The two pulls merged cleanly and left this
initializer missing the field, so the node test crate does not
compile.

package_dialect is false here, the off default those other literals
use. The rest of #1204 already matches the NodeEnv, NodeConfig, and
RpcContext fields #1211 added, and it does not call the helpers that
pull removed.

Co-authored-by: Brandon Black <reardencode@users.noreply.github.com>
@reardencode
reardencode merged commit 5048dfa into master Oct 25, 2026
18 checks passed
@rearden-grok
rearden-grok Bot deleted the cursor/fix-rpccontext-package-dialect-6048 branch October 26, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants