4. Oracle Daemon
The next step would be to add an oracle member, and start using the Oracle Daemon with the oracle member private key to craft and send reports to the vPool.
By default, the pool expects at least two members before it can start operating, but Kiln runs the global oracle member, so adding one regular member will do the trick.
Remember, you can remove the global oracle member from your vPool only if you have at least 5 members in your oracle quorum, and if you toggle the ejection flag.
Adding a new oracle member
The call is pretty simple, and should be performed by the vFactory admin
Running the Oracle Daemon
You can find the oracle daemon inside the operatord repository. It contains all the daemons that an operator might need to run.
Configuration
The oracle daemon is configured using a config.yaml file. Let's start by creating a directory for the oracle daemon:
mkdir ~/oracle_datadirAnd then, create ~/oracle_datadir/config.yaml, here's how it should look for one oracle member
- service: "oracle"
config:
name: "oracle-member-0"
private-key: "PRIVATE_KEY_IN_HEX"
pool: "ADDRESS_OF_POOL"
nexus: "ADDRESS_OF_NEXUS"
purchase: true
maxTxCostWei: "1000000000000000000"nameis for logging purposesprivate-keyis the private key of the member that you wish to runpoolis the address of thevPoolyou wish to report fornexusis the address of theNexuscontractpurchaseis set totrueif the member will also participate in performing thepurchaseValidatorscall on thevPoolmaxTxCostWeiis the maximum allowed cost of a tx in wei
Running using Docker
docker run -it \
-v ~/oracle_data:/oracle_data \
ghcr.io/kilnfi/operatord:latest start-oracle \
--execution-node-url $ETHEREUM_RPC_URL \
--consensus-node-url $BEACON_RPC_URL \
--config-file /oracle_data/operator.yml \
--database-file /oracle_data/oracle.dbIt might take a bit of time to sync, but anything pulled from EL/CL that we'll need to reuse is stored inside the sqlite database that will be created. This would greatly speedup possible restarts.
You should now ping Kiln to make sure that the global oracle member is running on their end. If that's the case, we should see oracle reports being posted
Last updated
Was this helpful?

