feat: add init message

This commit is contained in:
Info Island
2024-04-10 04:13:01 +08:00
parent 3edb131560
commit 75dfe74a96
3 changed files with 11 additions and 1 deletions

4
.envrc
View File

@@ -9,6 +9,10 @@ export NX_WORKSPACE_ROOT=$DIR
PATH_add node_modules/.bin
PATH_add tools/bin
if [ -f .envrc.override ]; then
source_env .envrc.override
fi
# export updated ENV of this file
node "${NX_WORKSPACE_ROOT}/tools/bin/get-env" "${__prevEnv__}" "$(env)" > "${NX_WORKSPACE_ROOT}/.env" &

3
.gitignore vendored
View File

@@ -39,4 +39,5 @@ testem.log
Thumbs.db
.nx/cache
.env
.env
.envrc.override

View File

@@ -241,6 +241,11 @@ class Tracker {
}
await this.startUp();
await alertToTelegram('reorg', 'start', {
latestHeight: this.latestHeight.toString(),
latestTip: this.latestTip,
message: `Started tracking from block ${this.latestHeight}`,
});
// eslint-disable-next-line no-constant-condition
while (true) {
await this.check();