Skip to content

Commit 22d736d

Browse files
Log whether a liquidated candidate was being watched (#73)
* Log whether a liquidated candidate was being watched * Use only node 14 to reduce test tx fees
1 parent 46127eb commit 22d736d

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/experiment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535

3636
steps:
3737
- uses: actions/checkout@v2
38-
- name: Use Node.js 12
38+
- name: Use Node.js 14
3939
uses: actions/setup-node@v1
4040
with:
41-
node-version: '12'
41+
node-version: '14'
4242

4343
- name: Create .env file
4444
run: |

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
strategy:
3838
matrix:
39-
node-version: [12.x, 14.x]
39+
node-version: [14.x]
4040

4141
steps:
4242
- uses: actions/checkout@v2

src/worker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ class Worker extends Database {
129129
for (let i = 0; i < this._candidates.length; i++) {
130130
if (this._candidates[i].address !== address) continue;
131131
this._candidates.splice(i, 1);
132+
console.log(`Candidate ${address} was being watched`);
132133
break;
133134
}
134135
}

0 commit comments

Comments
 (0)