Closes https://github.com/bitcoin/bitcoin/issues/3314 Built off of https://github.com/bitcoin/bitcoin/pull/27216 (== first two commits of this PR, required core updates)
This PR adds a “warnings” column in the receive coins dialog (recent requests table) and the address book receive page. Hovering over the ⚠️ if present shows a tooltip with a list of warnings. We also add a “warnings” field in the receive request dialog (shown after double-clicking an address in the first table) with the same message.
The warnings shown can be anything implemented in new methods GetWarnings()
but for now the only message we show there is:
This address should not be used. It was derived from an inactive seed, was imported, or may have been stored unencrypted.
Example screenshots:
1. Create new unencrypted wallet, get new receive address
2. Encrypt wallet
Notice how the first address is immediately flagged.
3. Get new receive address after encrypting wallet
New address is not flagged, it is active and safe to use.