Skip to content

Commit

Permalink
Add environmental variables within the global compare bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Jan 25, 2024
1 parent 661d379 commit 8e64ee0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions devel/compare-bigTable-rpc-global.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,25 @@ runningTimes=10
current_block=1690600
eachNumberOfBlocks=10000000
stop_block=240000000
rpc_endpoint="https://frequent-sparkling-hill.solana-mainnet.quiknode.pro/ff194d392c35948e3ef04003d141cda78dbf9733/"
reference_storage="gs://dfuseio-global-blocks-uscentral/sol-mainnet/v1?project=dfuseio-global"
current_storage="file:///Users/arnaudberger/t/data/storage/merged-blocks"

source ../.envrc

rpc_endpoint="$RPC_ENDPOINT"
reference_storage="$REFERENCE_STORAGE"
current_storage="$CURRENT_STORAGE"

# Now use the variables directly
echo "RPC Endpoint: ${rpc_endpoint}"
echo "Reference Storage: $REFERENCE_STORAGE"
echo "Current Storage: $CURRENT_STORAGE"

function fetch_rpc_blocks_for_range() {
local rpc_endpoint=$1
local start_block=$2
local stop_block=$3
rm -rf ~/t/data/

firecore start reader-node merger -c "" --merger-stop-block ${stop_block} --data-dir=/Users/arnaudberger/t/data --reader-node-data-dir=/Users/arnaudberger/t/data --reader-node-path=firesol --reader-node-arguments="fetch rpc ${rpc_endpoint} ${start_block} --state-dir /Users/arnaudberger/t/data" --common-first-streamable-block=${start_block}
firecore start reader-node merger -c "" --merger-stop-block ${stop_block} --data-dir=/Users/arnaudberger/t/data --reader-node-data-dir=/Users/arnaudberger/t/data --reader-node-path=firesol --reader-node-arguments="fetch rpc "${rpc_endpoint}" ${start_block} --state-dir /Users/arnaudberger/t/data" --common-first-streamable-block=${start_block}
}

function compare_reference_rpc_for_range() {
Expand Down

0 comments on commit 8e64ee0

Please sign in to comment.