Skip to content

Block validator: optimise operation validation

Albin Coquereau requested to merge albin@signature-cache into master

Context

This MR allow the block validator to skip signature check of known operation that were already validated in the prevalidator.

This improvement can reduce the block validation time by half (on mainnet), and reduce propagation time through the network.

image

I also tested this improvement on a test that craft and validate a block with 2500 manager operations (simple transfer) and got

image

Depends on !9120 (merged)

Manually testing the MR

Green CI.

Checklist

  • n/a Document the interface of any function added or modified (see the coding guidelines)
  • n/a Document any change to the user interface, including configuration parameters (see node configuration)
  • n/a Provide automatic testing (see the testing guide).
  • n/a For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Albin Coquereau

Merge request reports