Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix transaction output hashing #4483

Merged

Conversation

hansieodendaal
Copy link
Contributor

@hansieodendaal hansieodendaal commented Aug 16, 2022

Description

The newly introduced class Blake256 was used and calculation of output features consensus bytes was consolidated. Some code organization improvements were done.

Note: This change is also present in #4445.

Motivation and Context

Recent changes in the source code base required the cucumber test environment to be updated.

How Has This Been Tested?

When running locally: npm test -- --tags "@critical and not @long-running and not @broken" --profile "none"

26 scenarios (26 passed)
373 steps (373 passed)
18m27.251s (executing steps: 18m17.959s)

Recent changes in the source code base required the cucumber test
environment to be updated. The newly introduced `class Blake256`
was used and calculation of output features consensus bytes was
consolidated. Some code organization improvements were done.
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

LGTM - thanks

@@ -82,7 +82,7 @@ module.exports = {
domainHashers: {
transactionKdf(label) {
return new DomainHashing(
`com.tari.base_layer.core.transactions.v0.kdf.${label}`
`com.tari.base_layer.core.transactions.kdf.v0.${label}`
Copy link
Member

Choose a reason for hiding this comment

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

Good catch, even though it's not used

@aviator-app aviator-app bot merged commit 46d65fc into tari-project:development Aug 16, 2022
sdbondi added a commit to sdbondi/tari that referenced this pull request Aug 16, 2022
…ld-selector

* development:
  fix: wrong ban reason (tari-project#4461)
  fix broken critical cucumber test (tari-project#4458)
  chore: remove Defunct L2 code (tari-project#4463)
  fix(ci): binary builds - remove tari_collectibles and lib deps for linux  (tari-project#4454)
  feat(docker) :build tari docker images for launchpad (tari-project#4476)
  fix: fix transaction output hashing (tari-project#4483)
  chore: remove broken tag from working tests (tari-project#4471)
  fix: wallet always scan interactive payments (see tari-project#4452) (tari-project#4464)
  feat: remove total_txs and rename total_weight in mempool (tari-project#4474)
@hansieodendaal hansieodendaal deleted the ho_fix_txn_output_hashing branch August 23, 2022 07:51
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.

3 participants