You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mine/spacerace.md
+5-10Lines changed: 5 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -80,29 +80,24 @@ Yes, you can combine your competition results from multiple miners. Once the com
80
80
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.
81
81
82
82
#### 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.
87
86
88
87
```
89
88
~/.lotusminer/config.toml
90
89
91
90
[Dealmaking]
92
91
Filter = <shell command>
93
-
```
94
92
95
-
Deals are accepted if the `Filter`'s exit code is 0. For any other exit code, deals will be rejected. Examples:
96
-
97
-
```
98
93
## Reject all deals
99
94
Filter = "false"
100
95
101
96
## Accept all deals
102
97
Filter = "true"
103
98
104
-
### Only accept deals from client t3abcd
105
-
Filter = "jq -e '.Proposal.Client == \"t3abcd\"'"
99
+
## Only accept deals from the 3 competition dealbots
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