Sign inSign up

moneyonchain/omoc_node

By moneyonchain

•Updated 27 days ago

Descentralized oracle node

Image
2

3.4K

moneyonchain/omoc_node repository overview

⁠Money on Chain Oracle

⁠Oracle configuration

To run an oracle, the following information has to be provided:

  • Environment: testnet/mainnet
  • Oracle Address
  • RSK Node url
  • Coin Pairs
  • Oracle Port
  • Registry address
⁠Container log policy
  • log driver: json-file
  • max size file: 50Mb (estimated log file size per day)
  • max files retention: 15 (two weeks of logs)
  • compress: true
⁠Start oracle

The example below exposes the default oracle port, but if you have chosen to set another port in your oracle config file, you should expose the selected port.

docker run -d --restart always --log-driver json-file --log-opt max-size=50M --log-opt max-file=15 --log-opt compress=true -p 5556:5556 --name omoc-node --env-file=/home/ubuntu/env_oracle moneyonchain/omoc_node:latest  

If you would not want to config a file to start your oracle, you could pass the options one by one to the oracle container using the -e flag provided by docker. Below we leave an example:

sudo docker run -d \
--publish 5556:5556 \
--name omoc-node \
--env NODE_URL="http://localhost:8545" \
--env NETWORK_ID=12341234 \
--env ORACLE_ADDR=0x.... \
--env ORACLE_PRIVATE_KEY=0x...\
--env ORACLE_PORT=5556 \
--log-driver json-file \
--log-opt max-size=50M \
--log-opt max-file=15 \
--log-opt compress=true \
moneyonchain/omoc_node:latest 
⁠Dapp Configuration

Tag summary

Content type

Image

Digest

sha256:5e60f8b63…

Size

270.6 MB

Last updated

27 days ago

docker pull moneyonchain/omoc_node