Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Avoid double-work when publishing blocks #90

Open
peterschwarz opened this issue Sep 13, 2021 · 0 comments
Open

Avoid double-work when publishing blocks #90

peterschwarz opened this issue Sep 13, 2021 · 0 comments

Comments

@peterschwarz
Copy link
Contributor

This is a significant and relatively easy performance enhancement.

Currently, any node publishing a block does the following (roughly):

a) process transactions that will be in the block
b) create the block, publish it
c) process transactions to verify the block
d) update chain head

For step (c), we can use a cached result of (a). This will cut down the validator CPU usage significantly and should nearly double the transactions-per-second of the validator.

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

No branches or pull requests

1 participant