Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Nov 11, 2024
1 parent 9e5317e commit ddeb0cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ improving tx confirmation rates will require trial and error, try adjusting tx T
results are meet requirements:
- set `--extra-rpcs=<RPC_1>,<RPC_2>` to broadcast tx to multiple nodes
- set `--skip-tx-preflight` to disable preflight RPC checks
- setting a longer `ttl` per request
- set statically higher CU prices per request (see previous section) when no ack rates increase

**example request**
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ async fn main() -> std::io::Result<()> {
Some((state_commitment, tx_commitment)),
Some(config.default_sub_account_id),
config.skip_tx_preflight,
config.extra_rpc.split(",").collect(),
config.extra_rpcs.split(",").collect(),
)
.await;

Expand Down Expand Up @@ -415,7 +415,7 @@ struct GatewayConfig {
skip_tx_preflight: bool,
/// extra solana RPC urls for improved Tx broadcast
#[argh(option)]
extra_rpc: String,
extra_rpcs: String,
/// enable debug logging
#[argh(switch)]
verbose: bool,
Expand Down

0 comments on commit ddeb0cb

Please sign in to comment.