Skip to content

Conversation

clarkchen
Copy link

What does this PR do?
Adds parent hash information to BlockLogTrigger to include this data in the block streaming output.

Why are these changes required?
This enhancement helps users easily identify forked blockchain scenarios by providing the parent hash information in the block logs, which is crucial for blockchain analysis and troubleshooting.

This PR has been tested by:

  • Manual Testing

Follow up
NO

Extra details
The implementation adds a parentHash field to BlockLogTrigger and populates it in BlockLogTriggerCapsule by retrieving the parent hash from the block data.

@waynercheung
Copy link
Contributor

Hi @clarkchen , the block event is used in the eventplugin.

So, do you want to check the parent hash when you fetch the block info from the event service, such as kafka and mongoDB?

@clarkchen
Copy link
Author

@waynercheung

I've noticed the block event is used in the event-plugin and submit a new pr for you to review, thanks

tronprotocol/event-plugin#47

@clarkchen
Copy link
Author

@CodeNinjaEvan pls review this, thx~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants