Spurious log entries when using descriptor wallets #21262

issue ArmchairCryptologist opened this issue on February 22, 2021
  1. ArmchairCryptologist commented at 7:57 AM on February 22, 2021: none

    I've been testing out watch-only descriptor wallet usage on 0.20.0 with BIP32 Electrum/HW wallets, and while it appears to be generating the correct addresses, it keeps making seemingly unnecessary log entries in debug.log with the default logging level. Specifically, on startup, it complains that:

    [testwallet] External scriptPubKey Manager for output type 0 does not exist [testwallet] Internal scriptPubKey Manager for output type 0 does not exist [testwallet] Internal scriptPubKey Manager for output type 1 does not exist [testwallet] Internal scriptPubKey Manager for output type 2 does not exist

    and every time getnewaddress is invoked, it logs:

    [testwallet] External scriptPubKey Manager for output type 0 does not exist

    It seems to be complaining that I didn't load descriptors for P2PKH receiving addresses or any type of change address, but seeing as this is a watch-only wallet that is only using p2sh-segwit and bech32 type addresses, that is expected, and unless I'm misunderstanding something here, this should not raise any errors unless I actually try to generate addresses of that type.

    To reproduce:

    createwallet "testwallet" true true "" false true true
    importdescriptors '[{ "desc": "wpkh([.../84h/0h/0h]xpub.../0/*)#...", "timestamp":"now", "active": true, "range":[0,100000] }]'
    importdescriptors '[{ "desc": "sh(wpkh([.../49h/0h/0h]xpub.../0/*))#...", "timestamp":"now", "active": true, "range":[0,100000] }]'
    
    getnewaddress "" bech32
    getnewaddress "" p2sh-segwit
    

    Both invocations of getnewaddress work and generate the correct address, but trigger the error to be logged.

  2. ArmchairCryptologist added the label Bug on Feb 22, 2021
  3. meshcollider commented at 3:35 AM on September 28, 2021: contributor

    This was fixed by #22334

  4. meshcollider closed this on Sep 28, 2021

  5. DrahtBot locked this on Oct 30, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me