Skip to content

Commit

Permalink
Merge branch 'fix/fpd-conf' into chore/improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli committed Nov 7, 2024
2 parents 36dfe2d + 259a17f commit a83c8fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.babylon-integration.example
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ CONSUMER_FINALITY_PROVIDER_KEY=consumer-finality-provider
# amount to fund the consumer-finality-provider account
CONSUMER_FP_FUND_AMOUNT_UBBN=3000000000 # 3000 BBN
L2_RPC_URL=http://11.22.33.44:8545
L2_BLOCK_TIME=2
FINALITY_GADGET_ADDRESS=bbn14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sw76fy2
FINALITY_GADGET_RPC=11.22.33.44:50051 # gRPC
OP_FP_MONIKER="Tohma Finality Provider"
Expand Down
4 changes: 2 additions & 2 deletions configs/babylon-integration/consumer-fpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MaxSubmissionRetries = 100
FastSyncInterval = 20s

; The maximum number of blocks to catch up for each fast sync
FastSyncLimit = 10
FastSyncLimit = 100

; The block gap that will trigger the fast sync
FastSyncGap = 6
Expand All @@ -56,7 +56,7 @@ SyncFpStatusInterval = 30s
BufferSize = 1000

; The interval between each polling of OP L2 blocks
PollInterval = 2s
PollInterval = ${L2_BLOCK_TIME}s

; The static height from which we start polling the chain
StaticChainScanningStartHeight = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if [ ! -d "$CONSUMER_FINALITY_PROVIDER_DIR" ]; then
sed -i.bak "s|\${BITCOIN_NETWORK}|$BITCOIN_NETWORK|g" $FINALITY_PROVIDER_CONF
sed -i.bak "s|\${CONSUMER_FINALITY_PROVIDER_KEY}|$CONSUMER_FINALITY_PROVIDER_KEY|g" $FINALITY_PROVIDER_CONF
sed -i.bak "s|\${L2_RPC_URL}|$L2_RPC_URL|g" $FINALITY_PROVIDER_CONF
sed -i.bak "s|\${L2_BLOCK_TIME}|$L2_BLOCK_TIME|g" $FINALITY_PROVIDER_CONF
sed -i.bak "s|\${FINALITY_GADGET_RPC}|$FINALITY_GADGET_RPC|g" $FINALITY_PROVIDER_CONF
sed -i.bak "s|\${FINALITY_GADGET_ADDRESS}|$FINALITY_GADGET_ADDRESS|g" $FINALITY_PROVIDER_CONF
sed -i.bak "s|\${BABYLON_CHAIN_ID}|$BABYLON_CHAIN_ID|g" $FINALITY_PROVIDER_CONF
Expand Down

0 comments on commit a83c8fe

Please sign in to comment.