Skip to content

Conversation

rg911
Copy link
Contributor

@rg911 rg911 commented Feb 18, 2020

Added BlockService to validate transaction and receipt hashes against in specific block

Fixed #449

Comment on lines +78 to +83
if (pathItem.position === 1) {
return hasher.update(Buffer.from(pathItem.hash + proofHash, 'hex')).hex();
} else {
// Right
return hasher.update(Buffer.from(proofHash + pathItem.hash, 'hex')).hex();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The position is being changed from a number to a (left/right) string. Rest has done the change in master, we are still waiting for the open api PR symbol/symbol-openapi#77

@dgarcia360 can we move 77 PR forward? once released we can then generate the clients and update the ts and java PR related to merkle tests

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fboucquez
Copy link
Contributor

@rg911 can we add unit testing to the block service. E2E tests are great but they don't run every build and they don't increase coverage.

@fboucquez
Copy link
Contributor

fboucquez commented Feb 18, 2020

@rg911 0.8.4-SNAPSHOT.202002181344 client has been pushed to npm

@rg911
Copy link
Contributor Author

rg911 commented Feb 18, 2020

Rebased to #453

@rg911 rg911 closed this Feb 18, 2020
@rg911 rg911 mentioned this pull request Feb 18, 2020
@fboucquez fboucquez deleted the task/g449_block_service branch April 13, 2020 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BlockService for merkle auditing
3 participants