Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Jul 20, 2021

Follow up to #2470. Only the last two commits are from this work.

Make HexStr take a span of bytes, instead of an awkward pair of templated iterators. Simplifying most of the uses.

Adaptation of bitcoin#19660 and bitcoin#15573.

@furszy furszy self-assigned this Jul 20, 2021
@furszy furszy added this to the 6.0.0 milestone Jul 20, 2021
@furszy furszy force-pushed the 2021_make_HexStr_take_span branch from 485ab84 to ff44897 Compare July 26, 2021 15:03
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

Looking good. Few unneeded conversions to vector for c-arrays.

@furszy
Copy link
Author

furszy commented Jul 27, 2021

updated per feedback.

@furszy furszy force-pushed the 2021_make_HexStr_take_span branch from ff44897 to 2770504 Compare July 27, 2021 02:10
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

Not compiling due to a typo. Also needs rebase.

@furszy furszy force-pushed the 2021_make_HexStr_take_span branch from 2770504 to 92aa2e6 Compare July 27, 2021 15:52
ldm5180 and others added 2 commits July 27, 2021 12:52
Problem:
- Nothing uses the `fspaces` argument to `HexStr()` besides unit
  tests. This argument results in extra complexity and a small
  performance decrease within the function for branch evaluation.

Solution:
- Remove unused `fspaces` option.
@furszy furszy force-pushed the 2021_make_HexStr_take_span branch from 92aa2e6 to d4408cd Compare July 27, 2021 16:08
@furszy
Copy link
Author

furszy commented Jul 27, 2021

updated per feedback + rebased.

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

utACK d4408cd

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

ACK b011c51

@random-zebra random-zebra merged commit 33c2ae8 into PIVX-Project:master Aug 16, 2021
@furszy furszy deleted the 2021_make_HexStr_take_span branch November 29, 2022 15:43
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