Skip to content
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

Client: More UI Improvements / Fix TxPool not being started along FCU #3100

Merged
merged 6 commits into from
Oct 11, 2023

Conversation

holgerd77
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Merging #3100 (8777ade) into master (f4a4a92) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 88.78% <ø> (ø)
blockchain 92.61% <ø> (ø)
client 87.68% <100.00%> (+0.02%) ⬆️
common 98.19% <ø> (ø)
ethash ∅ <ø> (∅)
evm 71.87% <ø> (ø)
rlp ∅ <ø> (?)
statemanager 90.23% <ø> (ø)
trie 90.63% <ø> (+0.27%) ⬆️
tx 96.36% <ø> (ø)
util 86.97% <ø> (ø)
vm 76.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@@ -1226,11 +1226,9 @@ export class Engine {
}
this.service.txPool.removeNewBlockTxs(blocks)

const isPrevSynced = this.chain.config.synchronized
this.config.updateSynchronizedState(headBlock.header)
Copy link
Member

Choose a reason for hiding this comment

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

Should this line be removed? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's was not triggering anything anyhow and is now replaced by a direct setting of synchronized on FCU.

Testing eventual side effects right now by running a full Holesky sync (seems nothing so far).

Point of all this is that the tx pool never started.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should remove this line. The txpool thing is fine. Now each time FCU is called it will set state to synchronized. There is an interval in sync.ts which calls it also, which might override it back to syncing. I think this has undesired side effects..?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess i"m not 100% clear on what this synchronized state represents then. Does it represent the current head that the CL knows of or is it the current canonical head that the client is aware of or yet again, is it the current executed head of the client?

cc @g11tech

Copy link
Member Author

Choose a reason for hiding this comment

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

We generally have messy "synchronized" setting logic, especially in a post-Merge context.

This updateSynchronizedState() method e.g. - post-Mege - didn't trigger at all any more (didn't analyze further), with one (likely beyond other) before-change side effects that the tx pool did not start.

I now updated based on the assumed definition that the chain is synchronized "by definition" after a succesfull FCU including execution.

Side note: that doesn't mean our synchronized-code is completely clean after that. We should take this upon on a separate occasion and generally clean this up and make this more consistent.

Copy link
Contributor

Choose a reason for hiding this comment

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

i will lookinto fhis and make a fix shortly, as discussed with @holgerd77 the new logic might open the txpool without us being in the "synchronized" state

Copy link
Contributor

Choose a reason for hiding this comment

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

added the fix:
image

@holgerd77
Copy link
Member Author

Ah, no side effects (ran full Holesky and tx pool is properly starting at the end of execution and no other "stuff" happening or triggered).

grafik

Then I guess this is ready for review! 🙂

Copy link
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

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

lgtm

@g11tech g11tech merged commit 02a7abb into master Oct 11, 2023
43 checks passed
@holgerd77 holgerd77 deleted the some-more-client-ui-improvements branch October 11, 2023 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants