Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
consensus/clique: cache block signatures for fast checks #14545
Generating the signer of a
The original code had a cache for the signatures, but it seems it was never finished as it was left unused. This PR adds the missing piece of actually caching recovered addresses and attempting to pick the signer out from the cache before doing a heavy ecrecover.
The end result on a Nexus 5X:
old vs. new
On a Zenbook Pro, a light sync from 0 to head takes about 3:20 vs 2:05 with this change.
This one's for you @ligi (I was annoyed that Walleth syncs too much :P).