lisk-sdk
lisk-sdk copied to clipboard
Add ability to save inclusion proofs at every new block
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