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

[BUG] Fix regression with emplace_back on cold-staking scripts #1888

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

random-zebra
Copy link

Bug introduced in #1830 (hunted down with @furszy ).

Emplacing uint160(key1) into a vector of CTxDestination makes it construct the destination as a CScriptID instead of CKeyID. Therefore ExtractDestinations returns wrong addresses for cold staking scripts.

@random-zebra random-zebra added Bug Needs Backport Placeholder tag for anything needing a backport to prior version branches Cold Staking labels Oct 1, 2020
@random-zebra random-zebra added this to the 5.0.0 milestone Oct 1, 2020
@random-zebra random-zebra self-assigned this Oct 1, 2020
@random-zebra random-zebra removed the Needs Backport Placeholder tag for anything needing a backport to prior version branches label Oct 1, 2020
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

obvious ACK 9d40ace 🍺 .

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 9d40ace

@furszy furszy merged commit d7bb310 into PIVX-Project:master Oct 2, 2020
random-zebra added a commit that referenced this pull request Oct 2, 2020
…tion.

b189cc3 Created coldstaking_tests unit test, checking cold staking script keys proper extraction. (furszy)

Pull request description:

  Essentially proving #1830 bug and #1888 subsequent fix.

ACKs for top commit:
  Fuzzbawls:
    ACK b189cc3
  random-zebra:
    ACK b189cc3 (failing on master, passing on #1888). Merging...

Tree-SHA512: 9af3975fe099a0e26feddf2fd52abee12864bf77bb511b2fbed6f39a9ea029cdc057d15157fafe842cd7e2b438447a08dc455c763feeecdc1378af637541eaf1
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.

3 participants