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

feat: remove serde-byte-array #909

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

Cifko
Copy link
Contributor

@Cifko Cifko commented Jan 19, 2024

Description

Remove serde-byte-array crate, use serde_as(as = "Bytes") (available in serde_with crate, that we are already using) instead where necessary. Also add this serialization to Hash. This fixes the variable fees for transaction which was caused by the default CBOR serialization of arrays.
Before this change the fees for transactions were:
account create 371-375
transaction(non confidential) 736-742

After this change.
account create 355
transaction(non confidential) 701

Motivation and Context

How Has This Been Tested?

Running dan-testing with 2 committees and 10 accounts and transactions in between.

What process can a PR reviewer use to test or verify this change?

Probably something similar as above.

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - Please specify

Copy link

Test Results (CI)

198 tests  ±0   198 ✅ ±0   2h 14m 8s ⏱️ + 49m 12s
 53 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit d2681bb. ± Comparison against base commit 40545e5.

@sdbondi sdbondi added this pull request to the merge queue Jan 22, 2024
Merged via the queue into tari-project:development with commit f85608a Jan 22, 2024
11 checks passed
sdbondi added a commit to sdbondi/tari-dan that referenced this pull request Jan 22, 2024
* development:
  feat: remove serde-byte-array (tari-project#909)
  fix: ui (tari-project#907)
  fix: uncomment sync cucumber test (tari-project#905)
sdbondi added a commit to sdbondi/tari-dan that referenced this pull request Jan 22, 2024
@Cifko Cifko deleted the serde branch January 22, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants