Skip to content

Conversation

@luke-jr
Copy link
Member

@luke-jr luke-jr commented Jun 1, 2016

Continuing #5916 by adding backward compatibility with existing wallets

jonasschnelli and others added 4 commits September 24, 2015 16:26
A encrypted wallet can still hold keys which where created when the wallet was unencrypted.

This PR will add a 8bit-flags-int to the CKeyMetadata class.

`listreceivedbyaddress` will report whether the key was generated within a enctypted wallet or if it was imported throught `importprivkey`
@jonasschnelli
Copy link
Contributor

Hmm... we never have deployed #5916 (I guess you did in your custom distribution?). This would mean 104ab31 would address a feature-compatibility between third party distribution.
Okay for me but results in some ugly migration code.

My preferred solution would be:

  • a) 104ab31 must only be included in your custom distribution (if people swap wallet.dat from your fork to Core they might need to manually migrate first)
  • b) If a) is problematic, keep the 8BIT bitfield and merge add key generation type #5916 (which should be sufficient IMO).

PR nit: s/FEATURE_KEYFLAGS_OLD/FEATURE_KEYFLAGS_8BIT/ , s/VERSION_SUPPORT_FLAGS_OLD/VERSION_SUPPORT_FLAGS_8BIT/

@luke-jr
Copy link
Member Author

luke-jr commented Jun 2, 2016

I called it "OLD" rather than "8BIT" because there's a bitshift involved.

Any idea what's up with Travis's Mac build? :/

@laanwj
Copy link
Member

laanwj commented Jun 3, 2016

I'd prefer to not include migration code for something that we never deployed.
You can include that in your own distribution, of course.

@luke-jr
Copy link
Member Author

luke-jr commented Sep 10, 2016

Superceded by #8471

@luke-jr luke-jr closed this Sep 10, 2016
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants