Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket Subscription Missed a Block? #164

Open
MysticRyuujin opened this issue Jun 11, 2022 · 0 comments
Open

Websocket Subscription Missed a Block? #164

MysticRyuujin opened this issue Jun 11, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@MysticRyuujin
Copy link
Contributor

MysticRyuujin commented Jun 11, 2022

Running latest release (Docker) I noticed that while testing a simple WebSocket subscription that it failed to return a block:

websocat ws://dshackle:8545/eth
{"jsonrpc":"2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}
{"jsonrpc":"2.0","id":1,"result":"1"}
{"jsonrpc":"2.0","method":"eth_subscription","params":{"result":{"number":"0xe40eff","hash":"0x137fbb67b307ee30fe86d4c5816064c59025179ff6687e9ca3b8fedc4c4814c8","parentHash":"0xf6116b8ed96ec27bf5a618e98af0a41672a0f6b0889a1000370d186417150266","timestamp":"0x62a4f06b","difficulty":"0x34eceba5a430f2","gasLimit":"0x1c9c380","gasUsed":"0x7cf855","logsBloom":"0x80200382510840133793409080f316258c22400800021323310511082030c80c2715156d4220c1042c105b82128c1152420140120c02200a41000288007c20295082051492000228480c2818f3018f6e100c084086ec10d58c44ec00888055f15e29029e469a940da580539182e02c5c3110145a8c4404318006121790c8811a11288703734412040cdd904324003d41f2005189810002b803021a400412f2242ec90b27a8693820000161b3a43311fa080d83018d1201108492007911809bcd55100443480301840000e010a16d415500742600c40f4032c0214f1202806880f0112a0a20cc0ae6046e8384b0002a4010c3b100ae226860e8224b2053c00021","miner":"0x002e08000acbbae2155fab7ac01929564949070d","baseFeePerGas":"0x782e0f392"},"subscription":"1"}}
{"jsonrpc":"2.0","method":"eth_subscription","params":{"result":{"number":"0xe40f01","hash":"0x2385a737ed8cc2c8c6db9475b838252723183ae119ad35e70d76e77280bbc1e2","parentHash":"0x3d939173d53bbdf7931e9cf76d456b572914e1377d6e134517e7e6b716b0df41","timestamp":"0x62a4f089","difficulty":"0x34e84de82f7c6c","gasLimit":"0x1c95111","gasUsed":"0x38c54f","logsBloom":"0x002840000100c88010270000825013050014070820104010019100001420008800812124a004a06002005800021011d412418000488139cd223020010032600100028480080240e8ca0206880024032210c0e4021450108028000745802008088209080c0200420642810008002058400218021040022700005284120008541c1024018002000004144c100200108800040004010108940882a020404830002003050141000e2c400cc05085051810b40805000000100000842100041019920000804c0680800022200000900018400410000020260a0434040011028009300000f0307866040022820c12008505091204a002082004004000c488380000382b","miner":"0x2daa35962a6d43eb54c48367b33d0b379c930e5e","baseFeePerGas":"0x723cf7c9e"},"subscription":"1"}}
{"jsonrpc":"2.0","method":"eth_subscription","params":{"result":{"number":"0xe40f02","hash":"0xefcea842850b8a44d7341c2751a61e704d7e62b3a37e3a5ced5feb08ed47eefc","parentHash":"0x2385a737ed8cc2c8c6db9475b838252723183ae119ad35e70d76e77280bbc1e2","timestamp":"0x62a4f08b","difficulty":"0x34efeaf1ec825b","gasLimit":"0x1c9c364","gasUsed":"0x18ff5ef","logsBloom":"0xaef613a2b96f393bf9635db3f6d153ac6574f0f98b770165db69cdadf62bffc9bf79f36f57c0fe28fa5edf9ee793254fc697f8f97fba7d9f47ffbba3a7ffaee8149fbd217554f1efcf30707bff337eb546b6f1c2fff5b95a9dc9ee0fa527356773170fbfd6ab50bffdea1d39f9a3bceb7dfddeb57d05cf77cbf09df7c66e49fc16b71f7b277e5f17777b6549a85a76ff9d1fa5d7cfeef6799bdb3fdd4ef7332c16cb2b7ff102ee48be81f5f7efcb1237972f4637926e7f6e18bfdfee142f29ecd1d9736be7db0f7ba52fbe90ec5ed77f335ea203b72f7918df60b9e7aa576b9f3d3d69df2d0d380b90a3dec4a7d66fd997c9c9b97fb8d2f03f6f9dfe1f36e8e3","miner":"0xea674fdde714fd979de3edf0f56aa9716b898ec8","baseFeePerGas":"0x6780f4a7b"},"subscription":"1"}}
{"jsonrpc":"2.0","method":"eth_subscription","params":{"result":{"number":"0xe40f04","hash":"0x3cbbd187dae3c51c1c211ce7a818b7386702546d3865ee8d97533301a5b450ee","parentHash":"0x57c6848560cae4bf416e68b48842e44fa45acbaa2fc9e341cad3d1c8834a18b1","timestamp":"0x62a4f0a4","difficulty":"0x34f1ea3e2cd693","gasLimit":"0x1c95111","gasUsed":"0x60e6c3","logsBloom":"0x166241a125000a4490430424890e00264430a86008140764201184e01c00408a08c00179100828201440580085802d0087008403080028a480804302942024281d40523000c800ab1802521c6a100460944020001060193c6a00242410407000120801b00280042005044000000418c00098100208540f2a403030150fd80010010100001400005e48cc10000411c206600100062d2407384220a05808300a0e060e00194104a8230a086182381a254a000002089910c12010a0c26a1c291201141002021101424280e02008000191442e592211200806183a00039640a0240a613a6a19424050000804354400880ab8a346804169c00410014748a06088d021","miner":"0x2daa35962a6d43eb54c48367b33d0b379c930e5e","baseFeePerGas":"0x66778db7c"},"subscription":"1"}}

For whatever reason blocks 0xe40f00 and 0xe40f03 were just "missed"

@splix splix added the bug Something isn't working label Jun 11, 2022
vdoflip pushed a commit to jit-strategies/dshackle that referenced this issue Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants