oasisprotocol / oasis-rosetta-gateway

The official Rosetta server implementation for the Oasis Network.
Apache License 2.0
21 stars 9 forks source link

BlockAPI.Block will lose transactions #303

Open liyang783 opened 2 years ago

liyang783 commented 2 years ago

curl -X 'POST' 'http://ip:8080/block' -H 'accept: application/json' -H 'Content-Type: application/json' \

-d '{ "network_identifier": {"blockchain": "Oasis", "network": "53852332637bacb61b91b6411ab4095168ba02a50be4c3f82448438826f23898"}, "block_identifier":{"index":7862720,"hash":""} }' {"block":{"block_identifier":{"index":7862720,"hash":"41bc7940275a1e557d13810e208c34a95c27f042464bf46ce3ed1dc3c4bad24f"},"parent_block_identifier":{"index":7862719,"hash":"0177b95c196660cf89d5a7e15a594a92140cd4e18e747171d2c7e2dc94dc72e3"},"timestamp":1648545224000,"transactions":[],"metadata":{"epoch":13092}}}

transactions is null

pro-wh commented 2 years ago

Would you be able to get the logs from the gateway from around the time you make this request? I haven't been able to reproduce this on our deployment.