Run this unique command where the environment variables file is located (env_oracle). By default it is in the home directory.
curl -L https://moneyonchain.com/omoc_update.sh | bash
Basically this is a script that performs the procedure described in the next section but in a single step.
To be transparent, this section explains the whole procedure. We recommend use the easy way.
Where docker runs, you need to execute these commands to update the oracle node.
You must run them step by step in the following order:
docker pull moneyonchain/omoc_node:latest
docker stop omoc-node
docker rm omoc-node
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
docker logs -n 1 -t -f omoc-node
Press Ctrl + C to stop the log when you’re done.
Since 1.3.6.3
version an oracle endpoint has been added to expose which version is running.
The endpoint is http://<server-ip-address>:<port>/version
where <server-ip-address>
is the oracle's IP
and <port>
is the oracle's port number (by default it is 5556).
You can execute this command where docker runs:
curl http://localhost:<port>/version
Replacing by the port number (usually 5556) and you get something like this:
user@host:~$ curl http://localhost:5556/version
{"version":"1.3.6.9"}
If you try to obtain this data in an prior
1.3.6.3
version oracle you will get as an answer. "The request was not made by a selected oracle."
USD/ARS
and USD/COP
pairs supportFastAPI
DoSgas price
ABI
gas price
logRIF
price sources20 Gwei
spikes in the gas price
that the RSK network node announces.readme.md
and invalid and unrequired dependency removed from requisites.txt
./version
returns json-formatted version of the oracle-node/info
returns extra-information about oracle-node stateWhen an oracle-node is requested to sign a price, and a publishing required condition isn’t meet it will report back which condition fails. In case an exception is produced it will report the exception. Also if there’s no information about the exception the message was improved.
With this change the oracle-node invokes a contract requiring the oracle’s owner address not only with the oracle itself address but also with its owner address. In this way, we made it compatible with newer and older contract versions.