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

Make sure we never use other than segwit script for change outputs #9708

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

lontivero
Copy link
Collaborator

This PR makes sure to use segwit scripts for change outputs.

@@ -140,7 +140,7 @@ public TransactionFactory(Network network, KeyManager keyManager, ICoinsView coi
}
else
{
changeHdPubKey = KeyManager.GetKeys(KeyState.Clean, true).First();
changeHdPubKey = KeyManager.GetNextChangeKey();
Copy link
Collaborator

@molnard molnard Dec 7, 2022

Choose a reason for hiding this comment

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

Previously it was random (depending on the order of keys in the KeyManager) as far as I can see, correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No. I just added the "make sure it is segwit" part, the rest is exactly the same.

Copy link
Collaborator

@molnard molnard left a comment

Choose a reason for hiding this comment

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

ACK

@molnard molnard merged commit 6c1c78a into WalletWasabi:master Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants