Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
docker run \
--name station \
--detach \
--env FIL_WALLET_ADDRESS=f1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za \
--env FIL_WALLET_ADDRESS=f410fhgyuvi4k35wnqkvtdpewptt2oihbchvy5bdlmxy \
$IMAGEID
env:
IMAGEID: ${{ steps.docker_build.outputs.imageid }}
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $ npm install -g @filecoin-station/core
## Usage

```bash
$ FIL_WALLET_ADDRESS=f1... station
$ FIL_WALLET_ADDRESS=f410/0x... station
```

## Common Configuration
Expand Down Expand Up @@ -70,10 +70,12 @@ the configuration options described in
[Common Configuration](#common-configuration):

- `FIL_WALLET_ADDRESS` _(string; required)_: Address of the Filecoin wallet that
will receive rewards. The value must be a mainnet address starting with `f1`.
will receive rewards. The value must be a mainnet address starting with `f410`
or `0x`.

If you just want to give `core` a quick spin, you can use the address
`f1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za`. Please note that any earnings
`f410fhgyuvi4k35wnqkvtdpewptt2oihbchvy5bdlmxy` or respectively
`0x39b14aa38adf6cd82aB31BC967Ce7a720E111Eb8`. Please note that any earnings
sent there will be lost.

This command outputs metrics and activity events:
Expand Down Expand Up @@ -148,7 +150,7 @@ Deploy Station with [Docker](https://www.docker.com/). Please replace
$ docker run \
--name station \
--detach \
--env FIL_WALLET_ADDRESS=f1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za \
--env FIL_WALLET_ADDRESS=f410fhgyuvi4k35wnqkvtdpewptt2oihbchvy5bdlmxy \
ghcr.io/filecoin-station/core
```

Expand Down
4 changes: 4 additions & 0 deletions commands/station.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export const station = async ({ json, experimental }) => {
console.error('FIL_WALLET_ADDRESS required')
process.exit(1)
}
if (!FIL_WALLET_ADDRESS.startsWith('f410') && !FIL_WALLET_ADDRESS.startsWith('0x')) {
console.error('FIL_WALLET_ADDRESS must start with f410 or 0x')
process.exit(1)
}

startPingLoop().unref()
for (const moduleName of moduleNames) {
Expand Down
3 changes: 1 addition & 2 deletions test/util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { fileURLToPath } from 'node:url'

// From https://lotus.filecoin.io/lotus/manage/manage-fil/
export const FIL_WALLET_ADDRESS = 'f1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za'
export const FIL_WALLET_ADDRESS = 'f410fhgyuvi4k35wnqkvtdpewptt2oihbchvy5bdlmxy'

export const station = fileURLToPath(
new URL('../bin/station.js', import.meta.url)
Expand Down