Skip to content

Commit 0d1128e

Browse files
committed
BSC Running pre-commit scripts
1 parent 1008537 commit 0d1128e

File tree

15 files changed

+58
-63
lines changed

15 files changed

+58
-63
lines changed

docs/pre-merge-tools.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ npm run install-pre-commit-mac
4141
# Run
4242
npm run run-pre-commit
4343
```
44+
45+
4. Optionally, run [shellcheck](https://github.com/koalaman/shellcheck) to check for common problems in your shell scripts.

lib/bsc/README.md

Lines changed: 43 additions & 44 deletions
Large diffs are not rendered by default.

lib/bsc/app.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ cdk.Aspects.of(app).add(
5353
logIgnores: false
5454
})
5555
);
56-

lib/bsc/lib/assets/bsc/rpc-template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ echo "Script is starting..."
1515
--http.addr=0.0.0.0
1616

1717
set +e
18-
echo "Script is still running..."
18+
echo "Script is still running..."

lib/bsc/lib/assets/download-snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ mv /data/geth.full/geth /data/
5353
sudo rm -rf /data/geth.full
5454
sudo rm -rf /data/geth.tar.zst
5555

56-
echo "BSC snapshot is ready !!!"
56+
echo "BSC snapshot is ready !!!"

lib/bsc/lib/assets/node-cw-dashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,4 +232,4 @@ export const SyncNodeCWDashboardJSON = {
232232
}
233233
}
234234
]
235-
}
235+
}

lib/bsc/lib/assets/user-data/node.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,4 @@ if [[ "$LIFECYCLE_HOOK_NAME" != "none" ]]; then
209209
fi
210210

211211
echo "All Done!!"
212-
set -e
212+
set -e

lib/bsc/lib/common-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ export class BscCommonStack extends cdk.Stack {
6363
true
6464
);
6565
}
66-
}
66+
}

lib/bsc/lib/config/bscConfig.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ export interface BscHAConfig {
2424
albHealthCheckGracePeriodMin: number;
2525
heartBeatDelayMin: number;
2626
numberOfNodes: number;
27-
}
27+
}

lib/bsc/lib/config/bscConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ export const haNodeConfig: configTypes.BscHAConfig = {
4040
albHealthCheckGracePeriodMin: process.env.BSC_HA_ALB_HEALTHCHECK_GRACE_PERIOD_MIN ? parseInt(process.env.BSC_HA_ALB_HEALTHCHECK_GRACE_PERIOD_MIN) : 10,
4141
heartBeatDelayMin: process.env.BSC_HA_NODES_HEARTBEAT_DELAY_MIN ? parseInt(process.env.BSC_HA_NODES_HEARTBEAT_DELAY_MIN) : 40,
4242
numberOfNodes: process.env.BSC_HA_NUMBER_OF_NODES ? parseInt(process.env.BSC_HA_NUMBER_OF_NODES) : 2
43-
};
43+
};

0 commit comments

Comments
 (0)