MCPcopy Create free account
hub / github.com/base/base / validity_args_parse_with_forwarding

Function validity_args_parse_with_forwarding

crates/execution/cli/src/standard_node.rs:1166–1186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1164
1165 #[test]
1166 fn validity_args_parse_with_forwarding() {
1167 let args = CommandParser::<StandardNodeArgs>::parse_from([
1168 "base-reth",
1169 "--enable-tx-forwarding",
1170 "--builder-rpc-urls",
1171 "http://localhost:8545",
1172 "--validity-max-predicates",
1173 "8",
1174 "--validity-max-expiry-secs",
1175 "45",
1176 "--validity-signature-mode",
1177 "verify-if-present",
1178 ])
1179 .args;
1180
1181 assert!(args.rpc.enable_tx_forwarding);
1182 assert_eq!(args.rpc.validity_max_predicates, 8);
1183 assert_eq!(args.rpc.validity_max_expiry_secs, 45);
1184 assert_eq!(args.rpc.validity_signature_mode, ValiditySignatureMode::VerifyIfPresent);
1185 assert_eq!(args.rpc.builder_rpc_urls.len(), 1);
1186 }
1187
1188 #[test]
1189 fn validity_max_predicates_rejects_values_above_the_wire_ceiling() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected