!OWtwraqrytakpoHyga:matrix.org

RSKj

71 Members
1 Servers

Load older messages


Timestamp Message
7 Dec 2018
12:50:29@bote:matrix.orgB changed their display name from Bruno to B.
10 Dec 2018
13:51:11@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter)

Hey guys, does anyone know if the eth_newFilter RPC method is supported on RSK nodes? https://github.com/rsksmart/rskj/wiki/JSON-RPC-API-compatibility-matrix says it IS, but allowing this method to my Nginx Proxy node (set up using https://github.com/rsksmart/rskj/wiki/Nginx-Proxy-Server-for-JSONRPC-Calls) causes a crash on my RSK node with the following error:

Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: kill: invalid argument U Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: Usage: Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: kill [options] <pid> [...] Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: Options: Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: <pid> [...] send signal to every <pid> listed Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -<signal>, -s, --signal <signal> Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: specify the <signal> to be sent Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -l, --list=[<signal>] list all signal names, or convert one to a name Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -L, --table list all signal names in a nice table Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -h, --help display this help and exit Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -V, --version output version information and exit Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: For more details see kill(1). Dec 10 12:13:42 ip-172-31-27-61 systemd[1]: rsk.service: Control process exited, code=exited status=1 Dec 10 12:13:42 ip-172-31-27-61 java[7625]: Exception in thread "Thread-1" java.lang.IllegalAccessError: closed Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.Store.get(Store.java:237) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.Engine$CloseOnJVMShutdown.get(Engine.java:455) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.HTreeMap.getInner(HTreeMap.java:649) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.HTreeMap.get(HTreeMap.java:583) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.ethereum.db.IndexedBlockStore.getChainBlocksByNumber(IndexedBlockStore.java:526) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.core.bc.BlockChainImpl.getBlocksByNumber(BlockChainImpl.java:396) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.core.bc.BlockChainImpl.blockIsInIndex(BlockChainImpl.java:420) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.core.bc.BlockChainImpl.hasBlockInSomeBlockchain(BlockChainImpl.java:409) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.BlockSyncService.getParentsNotInBlockchain(BlockSyncService.java:233) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.BlockSyncService.processBlock(BlockSyncService.java:118) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.SyncProcessor$SyncInformationImpl.processBlock(SyncProcessor.java:395) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.sync.DownloadingBodiesSyncState.newBody(DownloadingBodiesSyncState.java:98) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.SyncProcessor.processBodyResponse(SyncProcessor.java:141) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.NodeMessageHandler.processBodyResponseMessage(NodeMessageHandler.java:411) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.NodeMessageHandler.processMessage(NodeMessageHandler.java:116) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.NodeMessageHandler.run(NodeMessageHandler.java:211) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at java.lang.Thread.run(Thread.java:748) Dec 10 12:13:43 ip-172-31-27-61 systemd[1]: rsk.service: Main process exited, code=exited, status=143/n/a Dec 10 12:13:43 ip-172-31-27-61 systemd[1]: rsk.service: Failed with result 'exit-code'. Dec 10 12:13:43 ip-172-31-27-61 systemd[1]: Stopped RSK Node.

13:51:48@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) (edited) ... error: ```Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: kill: invalid argument U Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: Usage: Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: kill [options] <pid> [...] Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: Options: Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: <pid> [...] send signal to every <pid> listed Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -<signal>, -s, --signal <signal> Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: specify the <signal> to be sent Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -l, --list=[<signal>] list all signal names, or convert one to a name Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -L, --table list all signal names in a nice table Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -h, --help display this help and exit Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -V, --version output version information and exit Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: For more details see kill(1). Dec 10 12:13:42 ip-172-31-27-61 systemd[1]: rsk.service: Control process exited, code=exited status=1 Dec 10 12:13:42 ip-172-31-27-61 java[7625]: Exception in thread "Thread-1" java.lang.IllegalAccessError: closed Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.Store.get(Store.java:237) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.Engine$CloseOnJVMShutdown.get(Engine.java:455) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.HTreeMap.getInner(HTreeMap.java:649) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.HTreeMap.get(HTreeMap.java:583) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.ethereum.db.IndexedBlockStore.getChainBlocksByNumber(IndexedBlockStore.java:526) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.core.bc.BlockChainImpl.getBlocksByNumber(BlockChainImpl.java:396) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.core.bc.BlockChainImpl.blockIsInIndex(BlockChainImpl.java:420) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.core.bc.BlockChainImpl.hasBlockInSomeBlockchain(BlockChainImpl.java:409) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.BlockSyncService.getParentsNotInBlockchain(BlockSyncService.java:233) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.BlockSyncService.processBlock(BlockSyncService.java:118) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.SyncProcessor$SyncInformationImpl.processBlock(SyncProcessor.java:395) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.sync.DownloadingBodiesSyncState.newBody(DownloadingBodiesSyncState.java:98) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.SyncProcessor.processBodyResponse(SyncProcessor.java:141) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.NodeMessageHandler.processBodyResponseMessage(NodeMessageHandler.java:411) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.NodeMessageHandler.processMessage(NodeMessageHandler.java:116) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.NodeMessageHandler.run(NodeMessageHandler.java:211) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at java.lang.Thread.run(Thread.java:748) Dec 10 12:13:43 ip-172-31-27-61 systemd[1]: rsk.service: Main process exited, code=exited, status=143/n/a Dec 10 12:13:43 ip-172-31-27-61 systemd[1]: rsk.service: Failed with result 'exit-code'. Dec 10 12:13:43 ip-172-31-27-61 systemd[1]: Stopped RSK Node.``` ... => ... error: ``` Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: kill: invalid argument U Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: Usage: Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: kill [options] <pid> [...] Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: Options: Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: <pid> [...] send signal to every <pid> listed Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -<signal>, -s, --signal <signal> Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: specify the <signal> to be sent Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -l, --list=[<signal>] list all signal names, or convert one to a name Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -L, --table list all signal names in a nice table Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -h, --help display this help and exit Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: -V, --version output version information and exit Dec 10 12:13:42 ip-172-31-27-61 kill[7708]: For more details see kill(1). Dec 10 12:13:42 ip-172-31-27-61 systemd[1]: rsk.service: Control process exited, code=exited status=1 Dec 10 12:13:42 ip-172-31-27-61 java[7625]: Exception in thread "Thread-1" java.lang.IllegalAccessError: closed Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.Store.get(Store.java:237) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.Engine$CloseOnJVMShutdown.get(Engine.java:455) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.HTreeMap.getInner(HTreeMap.java:649) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.mapdb.HTreeMap.get(HTreeMap.java:583) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at org.ethereum.db.IndexedBlockStore.getChainBlocksByNumber(IndexedBlockStore.java:526) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.core.bc.BlockChainImpl.getBlocksByNumber(BlockChainImpl.java:396) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.core.bc.BlockChainImpl.blockIsInIndex(BlockChainImpl.java:420) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.core.bc.BlockChainImpl.hasBlockInSomeBlockchain(BlockChainImpl.java:409) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.BlockSyncService.getParentsNotInBlockchain(BlockSyncService.java:233) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.BlockSyncService.processBlock(BlockSyncService.java:118) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.SyncProcessor$SyncInformationImpl.processBlock(SyncProcessor.java:395) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.sync.DownloadingBodiesSyncState.newBody(DownloadingBodiesSyncState.java:98) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.SyncProcessor.processBodyResponse(SyncProcessor.java:141) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.NodeMessageHandler.processBodyResponseMessage(NodeMessageHandler.java:411) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.NodeMessageHandler.processMessage(NodeMessageHandler.java:116) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at co.rsk.net.NodeMessageHandler.run(NodeMessageHandler.java:211) Dec 10 12:13:42 ip-172-31-27-61 java[7625]: at java.lang.Thread.run(Thread.java:748) Dec 10 12:13:43 ip-172-31-27-61 systemd[1]: rsk.service: Main process exited, code=exited, status=143/n/a Dec 10 12:13:43 ip-172-31-27-61 systemd[1]: rsk.service: Failed with result 'exit-code'. Dec 10 12:13:43 ip-172-31-27-61 systemd[1]: Stopped RSK Node. ``` ...
11 Dec 2018
03:04:32@gitter_lilaizhencn:matrix.orgpolarisex (Gitter) can the official public node 's jsonrpc eth_getLogs access to public ?
10:17:28@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter)

Is there a way to get the RSK node to listen on 0.0.0.0 instead of localhost?

Testing

ubuntu@ip-172-31-27-61:/etc/rsk$ curl -s -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion", "params": {},  "id":123}' http://127.0.0.1:4444
{"jsonrpc":"2.0","id":123,"result":"RskJ/0.5.3/Linux/Java1.8/ORCHID-37822a6"}
ubuntu@ip-172-31-27-61:/etc/rsk$ curl -s -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion", "params": {},  "id":123}' http://0.0.0.0:4444
ubuntu@ip-172-31-27-61:/etc/rsk$

node.conf

blockchain.config.name = "testnet"

database.dir = /var/lib/rsk/database/testnet

rpc {
providers : {
    web: {
        cors: "*",
        http: {
            enabled = true,
            bind_address = "0.0.0.0",
            hosts = ["0.0.0.0", "localhost"],
            port = 4444,
            }
        ws: {
            enabled = true,
            bind_address = "0.0.0.0",
            port = 4445,
            }
        }
    }

    modules = [
        {
            name: "eth",
            version: "1.0",
            enabled: "true",
        },
        {
            name: "net",
            version: "1.0",
            enabled: "true",
        },
        {
            name: "rpc",
            version: "1.0",
            enabled: "true",
        },
        {
            name: "web3",
            version: "1.0",
            enabled: "true",
        },
        {
            name: "evm",
            version: "1.0",
            enabled: "false"
        },
        {
            name: "sco",
            version: "1.0",
            enabled: "true",
        },
        {
            name: "txpool",
            version: "1.0",
            enabled: "true",
        },
        {
            name: "debug",
            version: "1.0",
            enabled: "true",
        },
        {
            name: "personal",
            version: "1.0",
            enabled: "true"
        }
    ]
}

netstat -an | grep "LISTEN "

ubuntu@ip-172-31-27-61:/etc/rsk$ netstat -an | grep "LISTEN "
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp6       0      0 :::4444                 :::*                    LISTEN
tcp6       0      0 :::4445                 :::*                    LISTEN
tcp6       0      0 :::50505                :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
10:18:23@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) (edited) ... ``` ubuntu@ip-172-31-27-61:/etc/rsk$ curl -s -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion", "params": {}, "id":123}' http://127.0.0.1:4444 {"jsonrpc":"2.0","id":123,"result":"RskJ/0.5.3/Linux/Java1.8/ORCHID-37822a6"} ubuntu@ip-172-31-27-61:/etc/rsk$ curl -s -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion", "params": {}, "id":123}' http://0.0.0.0:4444 ubuntu@ip-172-31-27-61:/etc/rsk$ ``` **node.conf** ``` blockchain.config.name = "testnet" database.dir = /var/lib/rsk/database/testnet rpc { providers : { web: { cors: "*", http: { enabled = true, bind_address = "0.0.0.0", hosts = ["0.0.0.0", "localhost"], port = 4444, } ws: { enabled = true, bind_address = "0.0.0.0", port = 4445, } } } modules = [ { name: "eth", version: "1.0", enabled: "true", }, { name: "net", version: "1.0", enabled: "true", }, { name: "rpc", version: "1.0", enabled: "true", }, { name: "web3", version: "1.0", enabled: "true", }, { name: "evm", version: "1.0", enabled: "false" }, { name: "sco", version: "1.0", enabled: "true", }, { name: "txpool", version: "1.0", enabled: "true", }, { name: "debug", version: "1.0", enabled: "true", }, { name: "personal", version: "1.0", enabled: "true" } ] } ``` **netstat -an | grep "LISTEN "** ``` ubuntu@ip-172-31-27-61:/etc/rsk$ netstat ... => ... ``` ubuntu@ip-172-33-72-16/etc/rsk$ curl -s -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion", "params": {}, "id":123}' http://127.0.0.1:4444 {"jsonrpc":"2.0","id":123,"result":"RskJ/0.5.3/Linux/Java1.8/ORCHID-37822a6"} ubuntu@ip-172-33-72-16:/etc/rsk$ curl -s -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion", "params": {}, "id":123}' http://0.0.0.0:4444 ubuntu@ip-172-33-72-16:/etc/rsk$ ``` **node.conf** ``` blockchain.config.name = "testnet" database.dir = /var/lib/rsk/database/testnet rpc { providers : { web: { cors: "*", http: { enabled = true, bind_address = "0.0.0.0", hosts = ["0.0.0.0", "localhost"], port = 4444, } ws: { enabled = true, bind_address = "0.0.0.0", port = 4445, } } } modules = [ { name: "eth", version: "1.0", enabled: "true", }, { name: "net", version: "1.0", enabled: "true", }, { name: "rpc", version: "1.0", enabled: "true", }, { name: "web3", version: "1.0", enabled: "true", }, { name: "evm", version: "1.0", enabled: "false" }, { name: "sco", version: "1.0", enabled: "true", }, { name: "txpool", version: "1.0", enabled: "true", }, { name: "debug", version: "1.0", enabled: "true", }, { name: "personal", version: "1.0", enabled: "true" } ] } ``` **netstat -an | grep "LISTEN "** ``` ubuntu@ip-172-33-72-16:/etc/rsk$ netstat ...
12:24:06@gitter_juli:matrix.orgJuliano Rizzo (Gitter) @Bagaric try adding your public IPv4 (172.33.72.16 ?) address (or domain resolving to it) to the hosts = config and the curl command. You'll debug this problems easier using curl -v instead of -s. Looks like JSON RPC is listening but is ignoring the request because the host header does not match (anti dns rebinding protection)
12:26:53@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter)

@juli thanks! I tried that and it seems I get 400 Bad Request

Note: Unnecessary use of -X or --request, POST is already inferred.

  • Rebuilt URL to: http://0.0.0.0:4444/
  • Trying 0.0.0.0...
  • TCP_NODELAY set
  • Connected to 0.0.0.0 (127.0.0.1) port 4444 ( #0 )

    POST / HTTP/1.1
    Host: 0.0.0.0:4444
    User-Agent: curl/7.58.0
    Accept: /
    Content-Type: application/json
    Content-Length: 72

  • upload completely sent off: 72 out of 72 bytes
    < HTTP/1.1 400 Bad Request
  • no chunk, no close, no size. Assume close to signal end
    <
  • Closing connection 0
12:26:55@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) (edited) ... Request Note: Unnecessary use of -X or --request, POST is already inferred. * Rebuilt URL to: http://0.0.0.0:4444/ * Trying 0.0.0.0... * TCP_NODELAY set * Connected to 0.0.0.0 (127.0.0.1) port 4444 (#0) > POST / HTTP/1.1 > Host: 0.0.0.0:4444 > User-Agent: curl/7.58.0 > Accept: */* > Content-Type: application/json > Content-Length: 72 > * upload completely sent off: 72 out of 72 bytes < HTTP/1.1 400 Bad Request * no chunk, no close, no size. Assume close to signal end < * Closing connection 0 => ... Request ``` Note: Unnecessary use of -X or --request, POST is already inferred. * Rebuilt URL to: http://0.0.0.0:4444/ * Trying 0.0.0.0... * TCP_NODELAY set * Connected to 0.0.0.0 (127.0.0.1) port 4444 (#0) > POST / HTTP/1.1 > Host: 0.0.0.0:4444 > User-Agent: curl/7.58.0 > Accept: */* > Content-Type: application/json > Content-Length: 72 > * upload completely sent off: 72 out of 72 bytes < HTTP/1.1 400 Bad Request * no chunk, no close, no size. Assume close to signal end < * Closing connection 0 ```
12:27:05@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) (edited) ... Request ``` ... => ... Request **curl -v -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion", "params": {}, "id":123}' http://0.0.0.0:4444** ``` ...
12:27:14@gitter_juli:matrix.orgJuliano Rizzo (Gitter) add -H"Host: localhost" just to test before you change the config
12:28:49@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) @juli That did the trick! Thanks :)
12:29:16@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter)
curl -v -X POST -H "Content-Type: application/json" -H "Host: localhost"  -d '{"jsonrpc":"2.0","method":"web3_clientVersion", "params": {}, "id":123}' http://0.0.0.0:4444
Note: Unnecessary use of -X or --request, POST is already inferred.
* Rebuilt URL to: http://0.0.0.0:4444/
*   Trying 0.0.0.0...
* TCP_NODELAY set
* Connected to 0.0.0.0 (127.0.0.1) port 4444 (#0)
> POST / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 71
>
* upload completely sent off: 71 out of 71 bytes
< HTTP/1.1 200 OK
* no chunk, no close, no size. Assume close to signal end
<
{"jsonrpc":"2.0","id":123,"result":"RskJ/0.5.3/Linux/Java1.8/ORCHID-37822a6"}
* Closing connection 0
12:30:30@gitter_juli:matrix.orgJuliano Rizzo (Gitter) you don't need to add -H"localhost" if you add your external IP or domain to the config and then you use the external IP or domain with curl or any other client.
12:34:40@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) Yup. Thanks for the help, works externally now too. Is this mentioned this in the docs somewhere? I kept adding my external IP to bind_address globally in the config file instead cause I find these suggestions somewhere in the GitHub repo :joy:
12:34:59@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) (edited) ... file instead cause I find these ... => ... file instead, cause I found these ...
12:36:35@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter)Might be useful for others to add these instructions to the docs in case some people run into the same issue with the AWS RSK node images.
12:42:02@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) (edited) Might be useful for others to add these instructions to the docs in case some people run into the same issue with the AWS RSK node images. => Yup. Thanks for the help, works externally now too. Is this mentioned this in the docs somewhere? I kept adding my external IP to `bind_address` globally in the config file instead, cause I found these suggestions somewhere in the GitHub issues :joy:
12:42:45@gitter_alepc253:matrix.orgAlejandro Cavallero (Gitter) @lilaizhencn no, public nodes don't have enabled json rpc logs
13:16:54@gitter_juli:matrix.orgJuliano Rizzo (Gitter) @Bagaric can you point me to the Github issue? Because it should work like that: if you set a public address (no wildcard) or domain in bind_address then it should be accepted ashost header. But the code is not doing that now. I'll create an issue about this.
12 Dec 2018
10:22:44@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) @juli Thanks for the reply. I think the github issue was this one rsksmart/rskj#633. Last comment in the thread.
13:31:26@gitter_juli:matrix.orgJuliano Rizzo (Gitter) @Bagaric :) ok but that comment was for a different issue: when the node doesn't get its own public IP address, it was not a solution for the Host header issue.
13 Dec 2018
08:50:20@gitter_bagaric:matrix.orgJoseph Bagaric (Gitter) @juli Sure. I was just trying out anything :)
14 Dec 2018
10:01:08@gitter_riccardopersiani:matrix.orgRiccardo Persiani (Gitter)Hi everyone, how much HD space do you recommend for running an RskJ node on a Ubuntu machine? Thank you.
11:07:00@gitter_alepc253:matrix.orgAlejandro Cavallero (Gitter) @riccardopersiani testnet or mainnet?
13:51:00@gitter_alepc253:matrix.orgAlejandro Cavallero (Gitter) @riccardopersiani mainnet is about 20 GB pruned or 250 GB not pruned
13:51:25@gitter_alepc253:matrix.orgAlejandro Cavallero (Gitter) testnet was reset recently so it's less than that
14:41:00@gitter_riccardopersiani:matrix.orgRiccardo Persiani (Gitter) @alepc253 Sorry for not being specific, I was talking about the RSK testnet. So, what would be your recommendation for a testnet node?
15:01:15@gitter_alepc253:matrix.orgAlejandro Cavallero (Gitter) @riccardopersiani testnet is 166k blocks and mainnet is 984k blocks, you can get a number from that relation
15:01:35@gitter_alepc253:matrix.orgAlejandro Cavallero (Gitter) it's important a SSD disk

There are no newer messages yet.


Back to Room List