Skip to content

getBlockHash(header) not working #42

@garvitgoel

Description

@garvitgoel

the hash returned by getBlockHash(header) is in-correct. It does not match the match the commit.block_id.hash. This is happening for headers and commits that are correct (checked using go-tendermint).

function verifyCommit (header, commit, validators) {
  let blockHash = getBlockHash(header)

  if (blockHash !== commit.block_id.hash) {
    throw Error('Commit does not match block hash')
  }

Given here - https://github.com/nomic-io/js-tendermint/blob/92aec26734c02b2ccd75ececccdaf1d6e70b772e/src/verify.js#L51

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions