Skip to content

Commit

Permalink
The README.md and application code have been updated to include instr…
Browse files Browse the repository at this point in the history
…uctions and logging for using a specific RPC without having to recompile. This improves usability by allowing users to change the RPC at runtime. Also, added log.info to display the endpoint, this can be helpful in troubleshooting and ensuring correct configuration.
  • Loading branch information
skynetcap committed Jan 20, 2024
1 parent 0ae88a7 commit f78594f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@

## Building

- Place private key in `main/resources` (JSON/Array format, generated by solana-keygen)
- Place private key (privateKey.json) in `main/resources` (JSON/Array format, generated by solana-keygen)
- Set `application.endpoint` (RPC) & `application.privateKey` (file name) in application.properties

- `docker build .`

## Running
`docker run CONTAINER_NAME`

## Running w/ Specific RPC (without recompiling)
`docker run -e APPLICATION_ENDPOINT=YOURSOLANA_RPC_HERE CONTAINER_NAME`
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public void crankEventHeapLoop() {
}
Account finalTradingAccount = tradingAccount;

log.info("RPC: {}", endpoint);

scheduler.scheduleAtFixedRate(() -> {
try {
// SOL/USDC
Expand Down

0 comments on commit f78594f

Please sign in to comment.