Skip to content

Commit 161eafe

Browse files
authored
Include dealbot ids in deal filtering instructions (#259)
1 parent 2e83952 commit 161eafe

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

docs/mine/spacerace.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,29 +80,24 @@ Yes, you can combine your competition results from multiple miners. Once the com
8080
If you’re eligible for rewards, someone from CoinList will reach out to your provided email address shortly after the competition to conduct AML/KYC and coordinate delivery of the tokens. You will have the option to receive rewards directly to your wallet.
8181

8282
#### How do I prioritize deals from competition bots?
83-
By default, Lotus nodes accept all inbound deals that match their criteria.
84-
However, during the Space Race competition, miners may want to limit the clients to avoid spam deals from malicious agents.
85-
To do this, modify the `~/.lotusminer/config.toml` file to include a `Filter` param.
86-
This param should be a shell command that will be run when processing a deal proposal.
83+
By default, Lotus nodes accept all inbound deals that match their criteria. However, during the Space Race competition, miners may want to limit the clients to avoid spam deals from malicious agents.
84+
85+
To filter deals based on certain parameters, modify the `~/.lotusminer/config.toml` file to include a `Filter` param. This param should be a shell command that will be run when processing a deal proposal. Deals are accepted if the `Filter`'s exit code is 0. For any other exit code, deals will be rejected.
8786

8887
```
8988
~/.lotusminer/config.toml
9089
9190
[Dealmaking]
9291
Filter = <shell command>
93-
```
9492
95-
Deals are accepted if the `Filter`'s exit code is 0. For any other exit code, deals will be rejected. Examples:
96-
97-
```
9893
## Reject all deals
9994
Filter = "false"
10095
10196
## Accept all deals
10297
Filter = "true"
10398
104-
### Only accept deals from client t3abcd
105-
Filter = "jq -e '.Proposal.Client == \"t3abcd\"'"
99+
## Only accept deals from the 3 competition dealbots
100+
Filter = "jq -e '.Proposal.Client == \"t12thv7e3x3tomo5nuunsvzqnl5txflpztdqcbtai\" || .Proposal.Client == \"t1capnpwjvm4gfbdlbavblmvjldwqzdo6ukh7mmq\" || .Proposal.Client == \"t12heuwfbg654jgdnctywyafxrqbmcidwj6osecha\" '"
106101
```
107102

108103
You can also write advanced deal filters based on any field in deal info (for example, you may wish to accept only `VerifiedClient` deals). Deal info is piped into `stdin` as JSON.

0 commit comments

Comments
 (0)