-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[wip] Why we even need txNum for statesyncTx? Yep. In RPC we needn't it. #14086
base: main
Are you sure you want to change the base?
Conversation
@AskAlexSharov i am scared of this PR |
me too. but i don't understand it yet. will dig today. |
@@ -512,23 +512,19 @@ func (api *PrivateDebugAPIImpl) GetRawTransaction(ctx context.Context, txnHash c | |||
txNumsReader := rawdbv3.TxNums.WithCustomReadTxNumFunc(freezeblocks.ReadTxNumFuncFromBlockReader(ctx, api._blockReader)) | |||
|
|||
// Private API returns 0 if transaction is not found. |
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.
don't understand why need rely on blockNum == 0
if txnLookup
returns ok
faced some issues on release3.0 branch:
now can try to test this PR |
@JkLondon seems i found why
Prototyped here (seems works) https://github.com/erigontech/erigon/compare/bor-txnum-statesync-eradication...bor-txnum-statesync-eradication_dbg?expand=1 |
ok guys, please let's not merge this yet |
No description provided.