Running the very core of SKL network, SKALE BFT consensus is universal, modern, modular, high-performance, asynchronous, provably-secure, agent-based Proof-of-Stake blockchain consensus engine in C++ 17. Includes provably secure embedded Oracle. Used by SKALE elastic blockchains. Easy and flexible enough to implement your own blockchain or smart contract platform. BLS signatures and Binary Asynchronous Consensus are main building blocks.
4. Compare responses
**Expected state:**
Oracle should be able to send requests to direct IP and domain name through HTTP
**Actual state:**
Oracle requests to http endpoint without domain name failed with ORACLE_INVALID_JSON_REQUEST 10 error
**Logs**
To direct IP
Preconditions: 2 Active schains medium type oracle-demo
Versions: skalenetwork/schain:3.16.1-beta.0
Steps to reproduce
========== Calculating PoW number ========== PoW number: 7301 ========== Sending request to Oracle ========== Request >>> {'id': 83, 'jsonrpc': '2.0', 'method': 'oracle_submitRequest', 'params': ['{"cid":123123,"uri":"http://1.1.1.1:10259","jsps":["/result"],"encoding":"json","ethApi":"eth_call","params":[{"from":"0x0000000000000000000000000000000000000000","to":"0x5fd3e5767b76ef934cac25e8ec947fb9e233c3bf","data":"0x49ce468d","gas":"0xfffff"},"latest"],"time":1681216360000,"pow":7301}']} Response <<< {'error': {'code': 10, 'data': None, 'message': 'Oracle request failed with status 10'}, 'id': 83, 'jsonrpc': '2.0'} Send oracle request failed
========== Calculating PoW number ========== PoW number: 2046 ========== Sending request to Oracle ========== Request >>> {'id': 83, 'jsonrpc': '2.0', 'method': 'oracle_submitRequest', 'params': ['{"cid":123123,"uri":"https://node-adv.skaletest.com:10264","jsps":["/result"],"encoding":"json","ethApi":"eth_call","params":[{"from":"0x0000000000000000000000000000000000000000","to":"0x5fd3e5767b76ef934cac25e8ec947fb9e233c3bf","data":"0x49ce468d","gas":"0xfffff"},"latest"],"time":1681216360000,"pow":2046}']} Response <<< {'id': 83, 'jsonrpc': '2.0', 'result': '00045f74551808a971f2f87ba8a52e3a8f7aa77b5b42e40b9da000b2bb1b04c8'} ========== Getting result from Oracle ========== Request >>> {'id': 83, 'jsonrpc': '2.0', 'method': 'oracle_checkResult', 'params': ['00045f74551808a971f2f87ba8a52e3a8f7aa77b5b42e40b9da000b2bb1b04c8']}