0

I'm using the Geth Real-Time Event to get the new blocks via web-socket and there's a subscription called "newHeads" for that propose.

The thing is sometimes the socket returns a duplicate block with different content. Why?

I'm using "Simple Websocket Client" extension for the socket.

Look at the attached picture and check block number "0x9073d7"

enter image description here

This is a diff of the content of both blocks: https://www.diffchecker.com/2UUt8n6H

0
1

It was a fork that was later replaced by the main chain. Fork may be more than one block.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.