Bitcoin Forum
April 10, 2021, 12:28:49 PM *
News: Latest Bitcoin Core release: 0.21.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Descriptor wallet importmulti Core 0.21  (Read 55 times)
Gabrics
Member
**
Offline Offline

Activity: 100
Merit: 31

Just digging around


View Profile WWW
February 05, 2021, 12:29:54 PM
 #1

Hi,

We work with a ColdCard wallet and Bitcoin Core 0.21 setup.

Everything works fine with legacy wallet format, ColdCard exports an importmulti command and Core has the watch only addresses:
importmulti '[{"range": [0, 1000], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "wpkh([*hash*/84h/1h/0h]*tpub*/0/*)#*hash*", "internal": false}, {"range": [0, 1000], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "wpkh([*hash*/84h/1h/0h]*tpub*../1/*)#*hash*", "internal": true}]'


We would like to move to Descriptor wallet in which case importmulti is not working.
If I just simply replace importmulti with importdescriptors it runs fine, but the wallet is not able to create/give any new address (get new address button is grayed out) getnewaddress returns "Error: This wallet has no available keys (code -4)".


Is there a way to import the xpub to a descriptor wallet (I tried to search, but no results so far) correctly?

Thanks
Gabor

PS:
Original tpubs and hashes were removed from commands.
1618057729
Hero Member
*
Offline Offline

Posts: 1618057729

View Profile Personal Message (Offline)

Ignore
1618057729
Reply with quote  #2

1618057729
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 2450
Merit: 3715


Just writing some code


View Profile WWW
February 05, 2021, 06:18:27 PM
 #2

The help command is your friend.

Replace "keypool": true with "active": true

Gabrics
Member
**
Offline Offline

Activity: 100
Merit: 31

Just digging around


View Profile WWW
February 05, 2021, 06:53:54 PM
 #3

Indeed, that was it! Thank you. Should have seen it myself Sad
(I just assumed that if any parameter is unknown call would/should fail)


One more question I have:
Now the XPUB is imported with range 0-1000.
Do I understand it right, that the new descriptor wallet should be able to refill the addresspool as it has the XPUB?

achow101
Moderator
Legendary
*
Offline Offline

Activity: 2450
Merit: 3715


Just writing some code


View Profile WWW
February 06, 2021, 03:58:16 AM
Merited by Gabrics (1)
 #4

One more question I have:
Now the XPUB is imported with range 0-1000.
Do I understand it right, that the new descriptor wallet should be able to refill the addresspool as it has the XPUB?
Yes. It starts out with 0-1000, but will continue on after that in accordance with the -keypool startup option. The default is to maintain a pool of 1000.

Gabrics
Member
**
Offline Offline

Activity: 100
Merit: 31

Just digging around


View Profile WWW
February 06, 2021, 05:36:04 AM
 #5

Great, thank you for the help!
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!