lisk-sdk icon indicating copy to clipboard operation
lisk-sdk copied to clipboard

Add ability to save inclusion proofs at every new block

Open ishantiw opened this issue 1 year ago • 0 comments

What was the problem?

This PR resolves #9194

How was it solved?

  • Add config to take keepInclusionProofsForHeights and inclusionProofKeys
  • Add DB update to get/set/delete inclusionProofs
  • Add handler in new block event to save inclusion proofs
  • Add endpoint for chain to get inclusion proofs by height

How was it tested?

  • Run interop examples and call endpoint chain_getInclusionProofsAtHeight with height to see the proofs being stored at new bock

ishantiw avatar Feb 02 '24 10:02 ishantiw