Skip to content

Commit 36709fd

Browse files
authored
chore: upgrade Zinnia to v0.19.1 (#67)
* ci: upgrade Zinnia to v0.19.1 https://github.com/filecoin-station/zinnia/releases/tag/v0.19.1 Signed-off-by: Miroslav Bajtoš <oss@bajtos.net> * Revert "fix: handle legacy dev wallet provided by zinnia (#65)" This reverts commit 3462d20. --------- Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
1 parent 6e6b22b commit 36709fd

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v4
8-
- run: curl -L https://github.com/filecoin-station/zinnia/releases/download/v0.18.3/zinnia-linux-x64.tar.gz | tar -xz
8+
- run: curl -L https://github.com/filecoin-station/zinnia/releases/download/v0.19.1/zinnia-linux-x64.tar.gz | tar -xz
99
- uses: actions/setup-node@v4
1010
- run: npx standard
1111
- run: ./zinnia run test.js

lib/spark.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,12 @@ export default class Spark {
165165

166166
async submitMeasurement (task, stats) {
167167
console.log('Submitting measurement...')
168-
// Workaround until there is a new zinnia binary with the following fix:
169-
// https://github.com/filecoin-station/zinnia/pull/538
170-
let participantAddress = Zinnia.walletAddress
171-
if (participantAddress === 't1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za') {
172-
participantAddress = '0x000000000000000000000000000000000000dEaD'
173-
}
174-
175168
const payload = {
176169
sparkVersion: SPARK_VERSION,
177170
zinniaVersion: Zinnia.versions.zinnia,
178171
...task,
179172
...stats,
180-
participantAddress,
173+
participantAddress: Zinnia.walletAddress,
181174
stationId: Zinnia.stationId
182175
}
183176
console.log('%o', payload)

test/spark.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ test('submitRetrieval', async () => {
131131
sparkVersion: SPARK_VERSION,
132132
zinniaVersion: Zinnia.versions.zinnia,
133133
cid: 'bafytest',
134-
participantAddress: '0x000000000000000000000000000000000000dEaD',
134+
participantAddress: Zinnia.walletAddress,
135135
stationId: Zinnia.stationId
136136
}),
137137
headers: { 'Content-Type': 'application/json' }

0 commit comments

Comments
 (0)