You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
The relay-chain-rpc-url option works fine with any type of relay chain RPC but is not accepted by smoldot to sync with a light client. [json-rpc-polkadot] Refused malformed JSON-RPC request: missing field params at line 1 column 59
This is because the params field is not sent by client when no param is required (like here on the initial subscribeNewHeads request). {"jsonrpc":"2.0","id":0,"method":"chain_subscribeNewHeads"}
Adding an empty params field would allow syncing the relay to a light client. "params":{}
Steps to reproduce
clone the smoldot repo / have rust & npm installed
start the light client/Websocket app: cd bin/wasm-node/javascript then npm install; npm start
start a para node: polkadot-parachain --chain statemine --relay-chain-rpc-url ws://127.0.0.1:9944/polkadot
The text was updated successfully, but these errors were encountered:
Issue
The
relay-chain-rpc-url
option works fine with any type of relay chain RPC but is not accepted by smoldot to sync with a light client.[json-rpc-polkadot] Refused malformed JSON-RPC request: missing field
paramsat line 1 column 59
This is because the
params
field is not sent by client when no param is required (like here on the initialsubscribeNewHeads
request).{"jsonrpc":"2.0","id":0,"method":"chain_subscribeNewHeads"}
Adding an empty
params
field would allow syncing the relay to a light client."params":{}
Steps to reproduce
cd bin/wasm-node/javascript
thennpm install; npm start
polkadot-parachain --chain statemine --relay-chain-rpc-url ws://127.0.0.1:9944/polkadot
The text was updated successfully, but these errors were encountered: