Skip to content
Snippets Groups Projects
  • Serban Iorga's avatar
    Fix mmr zombienet test (#5417) · 73e2316a
    Serban Iorga authored
    Fixes https://github.com/paritytech/polkadot-sdk/issues/4309
    
    If a new block is generated between these 2 lines:
    
    ```
      const proof = await apis[nodeName].rpc.mmr.generateProof([1, 9, 20]);
    
      const root = await apis[nodeName].rpc.mmr.root()
    ```
    
    we will try to verify a proof for the previous block with the mmr root
    at the current block. Which will fail.
    
    So we generate the proof and get the mmr root at block 21 for
    consistency.
    Unverified
    73e2316a
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
0003-mmr-generate-and-verify-proof.js 912 B