From 67bcdd83f376777085e204c5281450f3021c27df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Mon, 23 Jun 2025 13:25:57 +0200 Subject: [PATCH 1/6] feat! shut down MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miroslav Bajtoš --- README.md | 39 ++++++--------------------------------- main.js | 9 ++++++--- 2 files changed, 12 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 8601e1a..cabe7e4 100644 --- a/README.md +++ b/README.md @@ -2,36 +2,9 @@ SP Retrieval Checker Module -- [Roadmap](https://pl-strflt.notion.site/SPARK-Roadmap-ac729c11c49b409fbec54751d1bc6c8a) -- [API](https://github.com/filecoin-station/spark-api) - -## Development - -Install [Zinnia CLI](https://github.com/filecoin-station/zinnia). - -```bash -$ # Install dev tooling -$ npm ci -$ # Lint -$ npm run lint -$ # Fix linting issues -$ npm run lint:fix -$ # Run module -$ zinnia run main.js -$ # Test module -$ zinnia run test.js -``` - -## Release - -On a clean working tree, run the following command: - -```bash -$ ./release.sh -$ # Example -$ ./release.sh 1.0.0 -``` - -Use GitHub's changelog feature to fill out the release notes. - -Publish the new release and let the CI/CD workflow upload the sources to IPFS & IPNS. +> [!CAUTION] +> +> **This repository is no longer mantained.** +> +> Filecoin Spark and Checker Network continue to operate in a permissioned architecture. +> See the [announcement](https://x.com/FilecoinCDN/status/1932472254245298504) for more details. diff --git a/main.js b/main.js index b096efc..7103973 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,7 @@ -import Spark from './lib/spark.js' +Zinnia.activity.error( + 'Filecoin Station and Checker Network programmes ended. You can uninstall your node now. Thank you for your participation!', +) -const spark = new Spark() -await spark.run() +// import Spark from './lib/spark.js' +// const spark = new Spark() +// await spark.run() From b730fc5ae42f7a022be8a685185203ad95aaa8f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Mon, 23 Jun 2025 13:28:34 +0200 Subject: [PATCH 2/6] fixup! eslint - missing Zinnia global MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miroslav Bajtoš --- main.js | 2 ++ manual-check.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 7103973..a5c0e9f 100644 --- a/main.js +++ b/main.js @@ -1,3 +1,5 @@ +/* global Zinnia */ + Zinnia.activity.error( 'Filecoin Station and Checker Network programmes ended. You can uninstall your node now. Thank you for your participation!', ) diff --git a/manual-check.js b/manual-check.js index 4df0ae6..23cfc80 100644 --- a/manual-check.js +++ b/manual-check.js @@ -8,8 +8,8 @@ import { getIndexProviderPeerId as defaultGetIndexProvider } from './lib/miner-i // The task to check, replace with your own values const task = { - cid: 'bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq', - minerId: 'f0frisbii', + cid: 'bafkreigadgo5qw3ds7clzjpthroctpjwbu7bsbwq4qyaxamhxijlbwc34q', + minerId: 'f01858258', } const getIndexProviderPeerId = (minerId) => From a64669e0e8365ac2136b80b88c051aa8eaff9ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 24 Jun 2025 12:42:57 +0200 Subject: [PATCH 3/6] fixup! add infinite no-op loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miroslav Bajtoš --- main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.js b/main.js index a5c0e9f..2732a5e 100644 --- a/main.js +++ b/main.js @@ -4,6 +4,10 @@ Zinnia.activity.error( 'Filecoin Station and Checker Network programmes ended. You can uninstall your node now. Thank you for your participation!', ) +while (true) { + await new Promise((resolve) => setTimeout(resolve, 60_000)) +} + // import Spark from './lib/spark.js' // const spark = new Spark() // await spark.run() From 8d6e1ba8728dca7639e2c39505e1c05800944049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 24 Jun 2025 14:35:05 +0200 Subject: [PATCH 4/6] fixup! update message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miroslav Bajtoš --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 2732a5e..505d1a6 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,7 @@ /* global Zinnia */ Zinnia.activity.error( - 'Filecoin Station and Checker Network programmes ended. You can uninstall your node now. Thank you for your participation!', + 'Filecoin Station and Checker Network programmes ended. The node is no longer contributing to the network, and there will be no further rewards. Thank you for your participation!', ) while (true) { From b69bae1bc38c30d6833f410fe3ed7758413a3aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 24 Jun 2025 14:49:24 +0200 Subject: [PATCH 5/6] fixup! revert unintended changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miroslav Bajtoš --- manual-check.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual-check.js b/manual-check.js index 23cfc80..4df0ae6 100644 --- a/manual-check.js +++ b/manual-check.js @@ -8,8 +8,8 @@ import { getIndexProviderPeerId as defaultGetIndexProvider } from './lib/miner-i // The task to check, replace with your own values const task = { - cid: 'bafkreigadgo5qw3ds7clzjpthroctpjwbu7bsbwq4qyaxamhxijlbwc34q', - minerId: 'f01858258', + cid: 'bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq', + minerId: 'f0frisbii', } const getIndexProviderPeerId = (minerId) => From 47bcf17bc9b0f55a42c914c5d3086b40f9e6b19d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Wed, 25 Jun 2025 10:22:34 +0200 Subject: [PATCH 6/6] fixup! prefix the message to trigger offline mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to trigger offline mode in Checker Desktop and show offline status icon in the tray menu, the error message has to start with the prefix `Spark ` (the space character is important). Signed-off-by: Miroslav Bajtoš --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 505d1a6..300b348 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,7 @@ /* global Zinnia */ Zinnia.activity.error( - 'Filecoin Station and Checker Network programmes ended. The node is no longer contributing to the network, and there will be no further rewards. Thank you for your participation!', + 'Spark update: Filecoin Station and Checker Network programmes ended. The node is no longer contributing to the network, and there will be no further rewards. Thank you for your participation!', ) while (true) {