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
@@ -26,41 +26,34 @@ The installation process is still very manual. Will be improved based on feedbac
26
26
27
27
### Run
28
28
29
-
Set the necessary ENV variables. An example is shown below.
30
-
All those should be set but the exact numbers depend on the machine the program is run on.
29
+
Create a config file `blindbit.toml` in your data directory to run.
30
+
An example [blindbit.toml](./blindbit.example.toml) is provided here.
31
+
The settings in regard to parallelization have to be made in accordance to the cores on the Full node and host machine.
31
32
32
-
```text
33
-
export BASE_DIRECTORY="./test"
34
-
export MAX_PARALLEL_REQUESTS=4 (depends on max-rpc-workers of the underlying full node)
35
-
export RPC_ENDPOINT="http://127.0.0.1:18443" (defaults to http://127.0.0.1:8332)
36
-
export RPC_PASS="your-rpc-password"
37
-
export RPC_USER="your-rpc-user"
38
-
export SYNC_START_HEIGHT=1 (has to be >= 1)
39
-
40
-
export MAX_PARALLEL_TWEAK_COMPUTATIONS=4 (the default for this is 1, but should be set to a higher value to increase performance, one should set this in accordance to how many cores one wants to use)
41
-
42
-
[optional]
43
-
export TWEAKS_ONLY=1 (default: 0; 1 to activate | will only generate tweaks)
33
+
Once the data directory is set up you can run it as following.
34
+
```console
35
+
$ blindbit-oracle --datadir ./.blindbbit-oracle
44
36
```
45
37
46
-
Once the ENV variables are set you can just run the binary.
38
+
Note that the program will automatically default `--datadir` to `~/.blindbit-oracle` if not set.
39
+
You still have to set up a config file in any case as the rpc users can't and **should** not be defaulted.
47
40
48
41
## Known Errors
49
42
50
-
- block 727506 no tweaks but still one utxo listed (this should not happen)
43
+
-[Should be fixed]block 727506 no tweaks but still one utxo listed (this should not happen)
51
44
- REASON: UTXOs are currently blindly added based on being taproot. There is no check whether the inputs are
52
45
eligible. Will be fixed asap.
53
-
- cleanup has an error on block 712,517 as per
46
+
-[Should be fixed]cleanup has an error on block 712,517 as per
54
47
this [issue](https://github.com/setavenger/BlindBit-Backend/issues/2#issuecomment-2069827679). Needs fixing asap.
55
48
- program can only be run in tweak only mode for the time being
56
49
57
50
## Todos
58
51
59
52
-[ ] Add flags to control setup
60
-
- reindex
61
-
- headers only
62
-
- tweaks only
63
-
- move most env controls to config file or cli flags/args
53
+
-[ ] reindex
54
+
-[ ] headers only
55
+
-[x] tweaks only
56
+
-[x] move most env controls to config file or cli flags/args
64
57
-[ ] Include [gobip352 module](https://github.com/setavenger/gobip352)
65
58
-[ ] Refactor a bunch of stuff to use byte arrays or slices instead of strings for internal uses
66
59
- Could potentially reduce the serialisation overhead
@@ -78,13 +71,13 @@ Once the ENV variables are set you can just run the binary.
78
71
environment).
79
72
-[ ] Review all duplicate key error exemptions and raise to error/warn from debug.
80
73
-[ ] Remove unnecessary panics.
81
-
-[ ] Future non priority: move tweak computation code into another repo
82
74
-[ ] Convert hardcoded serialisation assertions into constants (?)
83
75
-[ ] Use x-only 32 byte public keys instead of scriptPubKey
0 commit comments