Skip to content

refactor: Use constructors instead of static initialiser in CBLSId#3869

Merged
PastaPastaPasta merged 5 commits into
dashpay:developfrom
xdustinface:pr-refactor-blsid-instantiations
Dec 15, 2020
Merged

refactor: Use constructors instead of static initialiser in CBLSId#3869
PastaPastaPasta merged 5 commits into
dashpay:developfrom
xdustinface:pr-refactor-blsid-instantiations

Conversation

@xdustinface
Copy link
Copy Markdown

@xdustinface xdustinface commented Dec 10, 2020

Adds CBLSId(const int64_t n) and CBLSId(const uint256& nHash) constructor and makes use of it in several places.

Based on #3867 Merged

@xdustinface xdustinface added this to the 17 milestone Dec 10, 2020
@xdustinface xdustinface force-pushed the pr-refactor-blsid-instantiations branch from 52574d7 to be2e606 Compare December 12, 2020 09:48
@xdustinface xdustinface marked this pull request as ready for review December 12, 2020 09:48
@xdustinface xdustinface marked this pull request as draft December 12, 2020 11:10
@xdustinface xdustinface marked this pull request as ready for review December 12, 2020 17:23
@UdjinM6
Copy link
Copy Markdown

UdjinM6 commented Dec 13, 2020

Looks ok-ish. What's the reason for moving implementation details (and #include <tinyformat.h>) into .h?

@xdustinface
Copy link
Copy Markdown
Author

What's the reason for moving implementation details (and #include <tinyformat.h>) into .h?

Good question 🙈 will change it with the rebase after #3871

@xdustinface xdustinface changed the title bls|llmq|bench: Refactor CBLSId instantiations refactor: Use constructors instead of static initialiser in CBLSId Dec 13, 2020
@xdustinface xdustinface force-pushed the pr-refactor-blsid-instantiations branch from be2e606 to 076c455 Compare December 14, 2020 19:55
Comment thread src/bench/bls_dkg.cpp Outdated
Copy link
Copy Markdown
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Copy Markdown

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK

@PastaPastaPasta PastaPastaPasta merged commit 0c28bf4 into dashpay:develop Dec 15, 2020
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Jun 26, 2021
…ashpay#3869)

* bls: Add CBLSId(const int64_t n) and CBLSId(const uint256& nHash)

* bench|llmq: Refactor instantiations of CBLSId

* bls: Drop CBLSId::{SetInt, SetHash, FromInt, FromHash}

* Drop `CBLSId(int64_t)` ctor

* Partially Revert "Drop `CBLSId(int64_t)` ctor"

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 14, 2022
…ashpay#3869)

* bls: Add CBLSId(const int64_t n) and CBLSId(const uint256& nHash)

* bench|llmq: Refactor instantiations of CBLSId

* bls: Drop CBLSId::{SetInt, SetHash, FromInt, FromHash}

* Drop `CBLSId(int64_t)` ctor

* Partially Revert "Drop `CBLSId(int64_t)` ctor"

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
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