mirror of
https://github.com/alexgo-io/reorg-notifier.git
synced 2026-01-12 06:34:22 +08:00
feat: add init message
This commit is contained in:
4
.envrc
4
.envrc
@@ -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
3
.gitignore
vendored
@@ -39,4 +39,5 @@ testem.log
|
||||
Thumbs.db
|
||||
|
||||
.nx/cache
|
||||
.env
|
||||
.env
|
||||
.envrc.override
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user