Skip to content

Commit

Permalink
mobilecoind-sync job: make minimum number of signatures a variable (#…
Browse files Browse the repository at this point in the history
…3946)

* make minimum number of signatures a varaiable
  • Loading branch information
jgreat authored Mar 26, 2024
1 parent a979647 commit 06750ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/refresh-ledger-bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ jobs:
matrix:
network:
- chain_id: test
min_signatures: "5"
block_info_url: https://node1.test.mobilecoin.com:443/gw/consensus_common.BlockchainAPI/GetLastBlockInfo
peers: mc://node1.test.mobilecoin.com:443/,mc://node2.test.mobilecoin.com:443/,mc://node3.test.mobilecoin.com/,mc://node1.consensus.mob.staging.namda.net:443/,mc://node2.consensus.mob.staging.namda.net:443/
quorum_set: |-
{ "threshold": 3, "members": [{"args":"node1.test.mobilecoin.com:443","type":"Node"},{"args":"node2.test.mobilecoin.com:443","type":"Node"},{"args":"node3.test.mobilecoin.com:443","type":"Node"},{"args":"node1.consensus.mob.staging.namda.net:443","type":"Node"},{"args":"node2.consensus.mob.staging.namda.net:443","type":"Node"}] }
tx_source_urls: https://s3-us-west-1.amazonaws.com/mobilecoin.chain/node1.test.mobilecoin.com/,https://s3-us-west-1.amazonaws.com/mobilecoin.chain/node2.test.mobilecoin.com/,https://s3-us-west-1.amazonaws.com/mobilecoin.chain/node3.test.mobilecoin.com/,https://s3-eu-central-1.amazonaws.com/staging-namda-payments-ledger/node1.consensus.mob.staging.namda.net/,https://s3-eu-central-1.amazonaws.com/staging-namda-payments-ledger/node2.consensus.mob.staging.namda.net/
- chain_id: main
min_signatures: "10"
block_info_url: https://node1.prod.mobilecoinww.com:443/gw/consensus_common.BlockchainAPI/GetLastBlockInfo
peers: mc://node1.prod.mobilecoinww.com:443/,mc://node2.prod.mobilecoinww.com:443/,mc://node3.prod.mobilecoinww.com/,mc://node1.consensus.mob.production.namda.net:443/,mc://node2.consensus.mob.production.namda.net:443/,mc://blockdaemon.mobilecoin.bdnodes.net:443/,mc://binance.mobilecoin.bdnodes.net:443/,mc://ideasbeyondborders.mobilecoin.bdnodes.net:443/,mc://thelongnowfoundation.mobilecoin.bdnodes.net:443/,mc://ams1-mc-node1.dreamhost.com:3223/
quorum_set: |
Expand Down Expand Up @@ -102,6 +104,7 @@ jobs:
MC_IP_INFO_TOKEN: ${{ secrets.IP_INFO_TOKEN }}
MC_MOBILECOIND_URI: insecure-mobilecoind://127.0.0.1:3229/
BLOCK_INFO_URL: ${{ matrix.network.block_info_url }}
MIN_SIGNATURES: ${{ matrix.network.min_signatures }}
RUST_LOG: error
run: |
set -e
Expand Down
5 changes: 4 additions & 1 deletion .internal-ci/util/wait-for-mobilecoind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ do
sleep 10
done

# allow override of MIN_SIGNATURES
: "${MIN_SIGNATURES:=10}"

# wait for Ledger DB
echo "Get mobilecoind block height"
mcd_json=$(get_mcd_ledger)
Expand Down Expand Up @@ -60,7 +63,7 @@ done

echo "Waiting for watcher db to sync - this may take a while"
signatures=0
while [[ ${signatures} -lt 10 ]]
while [[ ${signatures} -lt ${MIN_SIGNATURES} ]]
do
sleep 10

Expand Down

0 comments on commit 06750ab

Please sign in to comment.