0x0d1aa45cebe24fccf683bc160329db30f7544e30e79712edeb75b4e4c5472a65
- TG: @wonderlib
- @true_wondertan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ProposalData is arbitrary data that Proposers agree on. | |
// | |
// Alternative names: consensus.Data, Contract, or can remove alias altogether. | |
type ProposalData = []byte | |
// ValidatorFunc validates the ProposalData and reports back to the Concord | |
// Q: Verify vs Validate? Quick googling suggests that Validate suits better, but might be wrong. | |
type ValidatorFunc func(context.Context, ProposalData) (bool, error) | |
// ProposeFunc builds ProposalData. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/pledge.service | |
[Unit] | |
Description=Lotus Miner Auto Pledging Service | |
Wants=lotus-miner.service | |
[Service] | |
User=lotus # or any other user | |
Type=oneshot | |
ExecStart=lotus-miner sectors pledge | |
Environment=LOTUS_MINER_PATH=/lotus/miner-repo # set miner repository accordingly to your setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/pledge.timer | |
[Unit] | |
Description=Lotus Miner Auto Pledging Timer | |
[Timer] | |
OnUnitActiveSec=21min # Set the time that suits you harwdare the best. | |
# NOTE: You should also have enought funds for that, as pledging takes FILs for every produced sectors | |
# It requires having `pledge.service` in the same folder | |
# To start timer, manually fire `systemctl start pledge` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/lotus-worker-c2.service | |
[Unit] | |
Description=Lotus C2 Worker Service | |
After=network.target | |
[Service] | |
User=lotus # or any other user | |
ExecStart=/usr/local/bin/lotus-worker run --no-local-storage --addpiece=false --precommit1=false --unseal=false --precommit2=false --commit=true --parallel-fetch-limit 10 --listen 192.168.88.105:3458 | |
Restart=always | |
RestartSec=10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/lotus-worker-pc2.service | |
[Unit] | |
Description=Lotus PC2 Worker Service | |
After=network.target | |
[Service] | |
User=lotus # or any other user | |
ExecStart=/usr/local/bin/lotus-worker run --no-local-storage --addpiece=false --precommit1=false --unseal=false --precommit2=true --commit=false --parallel-fetch-limit 10 --listen 192.168.88.102:3456 | |
Restart=always | |
RestartSec=10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/lotus-worker-pc1.service | |
[Unit] | |
Description=Lotus PC1 Worker Service | |
After=network.target | |
[Service] | |
User=lotus # or any other user | |
ExecStart=/usr/local/bin/lotus-worker run --no-local-storage --addpiece=false --precommit1=true --unseal=true --precommit2=false --commit=false --parallel-fetch-limit 10 --listen 192.168.88.106:3456 | |
Restart=always | |
RestartSec=10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/lotus-miner.service | |
[Unit] | |
Description=Lotus Miner Service | |
After=network.target | |
After=lotus-daemon.service | |
Wants=lotus-daemon.service | |
[Service] | |
User=lotus # or any other user | |
ExecStart=/usr/local/bin/lotus-miner run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/lotus-daemin.service | |
[Unit] | |
Description=Lotus Daemon Service | |
After=network-online.target | |
Requires=network-online.target | |
[Service] | |
User=lotus # or any other user | |
ExecStart=/usr/local/bin/lotus daemon | |
ExecStop=/usr/local/bin/lotus daemon stop |
I hereby claim:
- I am wondertan on github.
- I am wondertan (https://keybase.io/wondertan) on keybase.
- I have a public key ASDHMMeXSi1Iflwi1HUMLFSAu89CPBXsTldO-9tfbdT3SQo
To claim this, I am signing this object:
NewerOlder