Skip to content

Commit

Permalink
chore: upgrade Zinnia to v0.19.1 (#67)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
bajtos authored May 13, 2024
1 parent 6e6b22b commit 36709fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: curl -L https://github.com/filecoin-station/zinnia/releases/download/v0.18.3/zinnia-linux-x64.tar.gz | tar -xz
- run: curl -L https://github.com/filecoin-station/zinnia/releases/download/v0.19.1/zinnia-linux-x64.tar.gz | tar -xz
- uses: actions/setup-node@v4
- run: npx standard
- run: ./zinnia run test.js
9 changes: 1 addition & 8 deletions lib/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,12 @@ export default class Spark {

async submitMeasurement (task, stats) {
console.log('Submitting measurement...')
// Workaround until there is a new zinnia binary with the following fix:
// https://github.com/filecoin-station/zinnia/pull/538
let participantAddress = Zinnia.walletAddress
if (participantAddress === 't1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za') {
participantAddress = '0x000000000000000000000000000000000000dEaD'
}

const payload = {
sparkVersion: SPARK_VERSION,
zinniaVersion: Zinnia.versions.zinnia,
...task,
...stats,
participantAddress,
participantAddress: Zinnia.walletAddress,
stationId: Zinnia.stationId
}
console.log('%o', payload)
Expand Down
2 changes: 1 addition & 1 deletion test/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ test('submitRetrieval', async () => {
sparkVersion: SPARK_VERSION,
zinniaVersion: Zinnia.versions.zinnia,
cid: 'bafytest',
participantAddress: '0x000000000000000000000000000000000000dEaD',
participantAddress: Zinnia.walletAddress,
stationId: Zinnia.stationId
}),
headers: { 'Content-Type': 'application/json' }
Expand Down

0 comments on commit 36709fd

Please sign in to comment.