Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Added a Hard Fork event which will enable transaction metadata in Bor #1064

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

pratikspatil024
Copy link

Transaction metadata will help speed up parallel execution (Block-STM).
The block producer will calculate the dependency and put it in the Extra Field in the Block Header.

@pratikspatil024 pratikspatil024 marked this pull request as draft August 2, 2023 05:59
@pratikspatil024 pratikspatil024 marked this pull request as ready for review August 4, 2023 03:00
Copy link
Collaborator

@battlmonstr battlmonstr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds a new field that is never initialized, and a new function that is never called. I don't understand what's the idea here?
Please refer me to the client code.

@pratikspatil024
Copy link
Author

Hi @battlmonstr, I am working on Block-STM and I need this function to store transaction dependency (which Block-STM will use) in the Extra field in Bor's block header. This PR does a similar change in Bor.

Therefore I have created this PR. Once this is merged, I'll use this function in the erigon repo and will create a PR there.

For your reference, there is a similar PR.

Thank you.

@battlmonstr
Copy link
Collaborator

battlmonstr commented Aug 17, 2023

@pratikspatil024 thanks for explaining. Could you create that erigon PR you plan to do and refer to this one? Whoever reviews the erigon's PR should review and merge both PRs at the same time (adjusting the erigonlib reference). For local development I recommend to add this to go.mod:

replace github.com/ledgerwatch/erigon-lib => ../erigon-lib

(assuming the erigon-lib is cloned to the parent directory of erigon)

this should untie you from having this PR merged first, before working on the erigon's PR

@pratikspatil024
Copy link
Author

Thanks, @battlmonstr. Created the PR.

@yperbasis
Copy link
Collaborator

@pratikspatil024 Please rebase/merge the latest erigon-lib so that only your own changes are displayed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants