-
Notifications
You must be signed in to change notification settings - Fork 95
Added a Hard Fork event which will enable transaction metadata in Bor #1064
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
Hi @battlmonstr, I am working on Block-STM and I need this function to store transaction dependency (which Block-STM will use) in the 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. |
@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:
(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 |
Thanks, @battlmonstr. Created the PR. |
Fixes the following panic triggered by blob Hive tests: ``` [2c098836] panic: runtime error: index out of range [0] with length 0 [2c098836] [2c098836] goroutine 902 [running]: [2c098836] github.com/ledgerwatch/erigon-lib/txpool.MainLoop.func1() [2c098836] github.com/ledgerwatch/[email protected]/txpool/pool.go:1565 +0x100f [2c098836] created by github.com/ledgerwatch/erigon-lib/txpool.MainLoop [2c098836] github.com/ledgerwatch/[email protected]/txpool/pool.go:1492 +0x8c5 ```
@pratikspatil024 Please rebase/merge the latest erigon-lib so that only your own changes are displayed. |
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.