# rieMiner/Mining for a Record

Here are the instructions to look for large prime constellations and attempt new records while mining and earning coins. We assume that you already configured rieMiner for pooled or solo mining.

## Generalities

You should first read how to attempt records using the Search Mode as many things also apply here.

Riecoin accepts 7-tuplets since the second fork for the PoW. Both patterns 0, 2, 6, 8, 12, 18, 20 and 0, 2, 8, 12, 14, 18, 20 are accepted and rieMiner chooses to mine one of them at random if no choice was made. Such constellations could be part of a longer one in both cases, from ${\displaystyle k=8}$ to ${\displaystyle k=15}$[1]. However, rieMiner is not yet written to support the second case yet if you want to beat a record. So for now, you can only choose patterns that start with 0, 2, 6, 8, 12, 18, 20 for this.

To know whether a record is possible, you must look at the current difficulty, and see starting from which length it beats the record. For example, if the current difficulty is 750, it will be lower for 8-tuples, but finding a 9-tuple at such difficulty would beat the record. Then, you must choose the correct pattern (note that in the configuration file, the offsets are offset differences and not just offsets from start).

Once done, rieMiner will look for these tuples. This will reduce the mining efficiency, however you will have a chance to get a record and there are some bounties to earn! If you don't configure rieMiner for a longer tuple, it is still possible that it eventually finds a 8-tuple or longer, but the probability of this happening would be very low.

## rieMiner configuration

Just use your pooled or solo mining configuration file and append the chosen constellation pattern, like

```ConstellationPattern = 0, 2, 4, 2, 4, 6, 2, 6, 4
```

It is strongly recommended to tune rieMiner, read the tuning guide to get the best performance. Also read the README.md to see more options for the configuration file.

Good luck!

## Notes

1. It is not obvious for the second case, for example 0, 2, 8, 12, 14, 18, 20 could be part of 0, 6, 8, 14, 18, 20, 24, 26 (add 6 to the offsets of the 7-tuple; if ${\displaystyle n-6}$ is also prime then the 7-tuple is a part of a 8-tuple).