blockworks-foundation / lite-rpc

This is a solana lite rpc which optimizes sending transactions and confirming transactions strategies.
GNU Affero General Public License v3.0
161 stars 43 forks source link

config error in load_identity_keypair - Cannot find the identity file provided #379

Closed grooviegermanikus closed 3 months ago

grooviegermanikus commented 3 months ago

Discussed in https://github.com/blockworks-foundation/lite-rpc/discussions/377

Originally posted by **ffarhanaamin** March 31, 2024 TAG: v0.2.4 I am trying to run quick-forward-proxy, by invoking the following, RUST_LOG=debug cargo run --bin solana-lite-rpc-quic-forward-proxy -- --proxy-listen-addr 0.0.0.0:11111 I am getting the following exception, Updating git repository `https://github.com/rpcpool/yellowstone-grpc.git` Finished dev [unoptimized + debuginfo] target(s) in 0.51s Running `target/debug/solana-lite-rpc-quic-forward-proxy --proxy-listen-addr '0.0.0.0:11111'` Error: Cannot find the identity file provided Caused by: No such file or directory (os error 2) Caused by: No such file or directory (os error 2) I can read in the documentation that identify file is not a mandatory parameter. https://github.com/blockworks-foundation/lite-rpc/tree/main/quic-forward-proxy
grooviegermanikus commented 3 months ago

affects core load_identity_keypair

grooviegermanikus commented 3 months ago

Case 1: no identity

--proxy-listen-addr 0.0.0.0:11111

Case 2: identity from file where path is specified as cli arg

--proxy-listen-addr 0.0.0.0:11111 --identity-keypair some-validator-identity.json

Case 3: Keypair as Json Array on ENV

export IDENTITY="[130,173,80,35,.....]"