Skip to content

Conversation

@czarte
Copy link
Collaborator

@czarte czarte commented Sep 30, 2025

Note

Clarifies blockchain service URL help text and error messaging, fixes a misattributed configurator error, and updates tests to no longer pass --blockchain-service-url where unnecessary.

  • CLI/Help:
    • Update BLOCKCHAIN_SERVICE_HELP with <api-key> placeholders, improved grammar, and explicit --chain base-mainnet guidance.
  • Error handling:
    • Change required-arg message to singular phrasing; fix into_configurator_error target from gas-price to blockchain-service-url.
  • Unit/Integration Tests:
    • Adjust expectations for updated help/error strings.
    • Add helper to validate exceptions suppressing blockchain URL requirement.
    • Remove --blockchain-service-url from many MASQNode::start_* calls; minor arg tweaks (e.g., chain identifier from DEFAULT_CHAIN).

Written by Cursor Bugbot for commit 317243f. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on October 14

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Bug: Node Startup Fails Without Blockchain URL

Removing the --blockchain-service-url parameter from MASQNode::start_standard calls in several tests causes the Node to fail startup. This parameter is required unless --fake-public-key, --crash-point, or --neighborhood-mode zero-hop is also provided, none of which were added.

node/tests/dns_resolve_failure_test.rs#L12-L15

fn dns_resolve_failure_http_response_integration() {
let _node_to_test_against = utils::MASQNode::start_standard(
"dns_resolve_failure_http_response_integration",
None,

node/tests/http_through_node_test.rs#L14-L17

fn http_through_node_integration() {
let _node = utils::MASQNode::start_standard(
"http_through_node_integration",
None,

node/tests/tls_through_node_test.rs#L16-L19

fn tls_through_node_integration() {
let _node = utils::MASQNode::start_standard(
"tls_through_node_integration",
None,

node/tests/initialization_test.rs#L269-L280

#[test]
fn node_creates_log_file_with_heading_integration() {
let config = CommandConfig::new()
.pair("--neighborhood-mode", "standard")
.pair("--ip", "1.0.0.1")
.pair(
"--neighbors",
&format!(
"masq://{}:UJNoZW5p_PDVqEjpr3b-8jZ_93yPG8i5dOAgE1bhK-A@12.23.34.45:5678",
DEFAULT_CHAIN.rec().literal_identifier
),
);

node/tests/dns_resolve_failure_test.rs#L35-L38

fn dns_resolve_failure_tls_response_integration() {
let _node_to_test_against = utils::MASQNode::start_standard(
"dns_resolve_failure_tls_response_integration",
None,

node/tests/connection_shutdown_test.rs#L23-L24

"proxy_client_stream_reader_dies_when_client_stream_is_killed_integration",
Some(CommandConfig::new().pair("--ui-port", &ui_port.to_string())),

node/tests/dump_configuration_test.rs#L23-L24

CommandConfig::new()
.pair("--ui-port", &port.to_string())

node/tests/financials_test.rs#L75-L76

test_name,
Some(CommandConfig::new().pair("--ui-port", &port.to_string())),

node/tests/initialization_test.rs#L158-L160

Some(
CommandConfig::new()
.pair(

node/tests/initialization_test.rs#L225-L227

Some(
CommandConfig::new()
.pair("--ui-port", &port.to_string())

node/tests/node_exits_from_future_panic_test.rs#L69-L70

"node_logfile_does_not_belong_to_root_integration",
Some(CommandConfig::new().pair("--chain", "polygon-amoy")),

node/tests/ui_gateway_test.rs#L30-L32

Some(
CommandConfig::new()
.pair("--ui-port", &port.to_string())

node/tests/ui_gateway_test.rs#L64-L66

Some(
CommandConfig::new()
.pair("--ui-port", &port.to_string())

node/tests/ui_gateway_test.rs#L209-L211

Some(
CommandConfig::new()
.pair("--chain", DEFAULT_CHAIN.rec().literal_identifier)

Fix in Cursor Fix in Web


Copy link
Collaborator

@dnwiebe dnwiebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaningless approval, but it looks good except for a couple of minor nitpicks.

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.

3 participants