Automatically create a default wallet when none is loaded?

3 replies 466 views
Posts: 20 · Reputation: 211
#1Nov 13, 2025, 12:24 PM
I'm forking bitcoin v25.0 and trying to implement a feature that automatically generates a new wallet named "default" if there's no wallet loaded. Can someone point me in the right direction on what code to change and where? I remember that in earlier versions, a default wallet was created automatically if it wasn’t already there.
6 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#2Nov 13, 2025, 02:32 PM
Yes, those are the earlier versions before 0.21.0. (01-16-2021) Here's the release notes: github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.21.0.md To get to the repository's state at that time, click your prefered version's tag above "Compare" button in the 'release' page: github.com/bitcoin/bitcoin/releases?page=2 Example for v 0.20.1: github.com/bitcoin/bitcoin/tree/v0.20.1
2 Reply Quote Share
mikemoonMember
Posts: 16 · Reputation: 199
#3Nov 13, 2025, 07:44 PM
Are you familiar with C++? Shoot me a PM and I will see what I can do to help you out! MrC
5 Reply Quote Share
mikemoonMember
Posts: 16 · Reputation: 199
#4Nov 13, 2025, 08:18 PM
To elaborate on this, it may be easier to git clone both repos locally, then open them in VSCode/Sublime/Notepad++, etc and run the comparison there first. Once you find the corresponding changes, work backwards and reimplement the feature. It doesn't seem like a big change though, so it shouldn't be too hard. Make sure you have a dev environment set up so you can compile and debug. If you need recommendations or even an OVA.OVF with everything ready to go let me know.
1 Reply Quote Share

Related topics