Bitcoin Forum
May 25, 2024, 05:05:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How can I create a default wallet automatically if no wallet is loaded?  (Read 86 times)
coco_byte (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 29, 2023, 05:25:07 AM
Last edit: November 29, 2023, 10:39:17 PM by coco_byte
 #1

I am forking the bitcoin v25.0 and want to add a feature that create a new wallet with the name "default" automatically when there is no wallet could be loaded.
Could anyone guide me how and where I should change the code? Huh

I heard in the early versions, there was a feature that a default wallet is automatically created if it does not exist
nc50lc
Legendary
*
Online Online

Activity: 2422
Merit: 5628


Self-proclaimed Genius


View Profile
November 30, 2023, 07:53:48 AM
Merited by ABCbits (1)
 #2

I heard in the early versions, there was a feature that a default wallet is automatically created if it does not exist
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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
mistercoin
Legendary
*
Offline Offline

Activity: 1044
Merit: 1000


https://r.honeygain.me/XEDDM2B07C


View Profile WWW
December 09, 2023, 05:53:37 PM
 #3

I am forking the bitcoin v25.0 and want to add a feature that create a new wallet with the name "default" automatically when there is no wallet could be loaded.
Could anyone guide me how and where I should change the code? Huh

I heard in the early versions, there was a feature that a default wallet is automatically created if it does not exist


Are you familiar with C++? Shoot me a PM and I will see what I can do to help you out!

MrC

mistercoin
Legendary
*
Offline Offline

Activity: 1044
Merit: 1000


https://r.honeygain.me/XEDDM2B07C


View Profile WWW
December 09, 2023, 06:02:17 PM
 #4

I heard in the early versions, there was a feature that a default wallet is automatically created if it does not exist
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

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!