Describe the bug
Filecoin.ChainNotify responses contain payload that escapes JSON. However, this is inconsistent with Lotus, and with a more general expectation that JSON payload of JSON RPC responses is not escaped.
To reproduce
Forest v0.28 example:
wscat -c "ws://forest-node:2345/rpc/v1"
Connected (press CTRL+C to quit)
> {"jsonrpc":"2.0","id":1,"method":"Filecoin.ChainNotify","params":[]}
< {"jsonrpc":"2.0","method":"xrpc.ch.val","params":[5,"[{\"Type\":\"current\",\"Val\":{\"Cids\":[{\"/\":\" ...
Lotus example:
wscat -c "ws://forest-node:2345/rpc/v1"
Connected (press CTRL+C to quit)
> {"jsonrpc":"2.0","id":1,"method":"Filecoin.ChainNotify","params":[]}
< {"jsonrpc":"2.0","method":"xrpc.ch.val","params":[1,[{"Type":"current","Val":{"Cids":[{"/":"bafy
Expected behaviour
I expect JSON RPC responses to not escape JSON, i.e. to be the same as Lotus response.
Environment (please complete the following information):
- OS: Linux
- Branch/commit: v0.28
Describe the bug
Filecoin.ChainNotify responses contain payload that escapes JSON. However, this is inconsistent with Lotus, and with a more general expectation that JSON payload of JSON RPC responses is not escaped.
To reproduce
Forest v0.28 example:
Lotus example:
Expected behaviour
I expect JSON RPC responses to not escape JSON, i.e. to be the same as Lotus response.
Environment (please complete the following information):