yield_forkFull Member
Posts: 162 · Reputation: 728
#1Jul 16, 2024, 11:58 AM
Right now in Bitcoin Core, we can import descriptors and choose the index from which the wallet will give us a new address using "getnewaddress" or in the receiving tab.
So, next_index is currently just an argument, but wouldn’t it be smarter to create a new RPC command for this, like with keypoolrefill?
What’s driving this suggestion?
Every time we create a new address, Bitcoin Core shows that address just once, then it gets stored in the address list. This is all about privacy, so users don’t have to use the same address repeatedly.
The issue here is that if someone hits get new address 100 or 1000 times, the next index would be, say, 1001. But the wallet might not instantly reflect the funds sent to that address, which can freak people out. They then have to use the newkeypool or keypoolrefill command.
Maybe it would be better if Bitcoin Core only made new addresses when it sees the previous one has been used, which would solve the problem of skipping addresses. I really think this kind of fix would make managing our finances a lot easier.
Is anyone else feeling this way?
Or maybe an RPC command could be added to the options window, so Bitcoin Core could generate new addresses whenever we ask for them, or only create new ones when they get used, like a lot of other wallets do.