Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

Import privet key takes too long

Discussion in 'Daemon and QT Wallet Support' started by Marian, Mar 28, 2017.

  1. Marian

    Marian New Member

    Joined:
    Mar 21, 2017
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Hello

    Why even if I have all indexes enabled the "importprivkey" function takes so much time? When I want to check all the transaction and the balance with "getaddressutxos" or with "getaddresstxids" it takes no time.
     
  2. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    The default setting for importprivkey is to do a complete rescan of the blockchain - which takes time.

    If you want to suppress the blockchain scanning you can use

    Code:
    importprivkey <key> <address_label> false
    format - not sure if the balance is displayed correct after that though, just give it a try :)
     
  3. Marian

    Marian New Member

    Joined:
    Mar 21, 2017
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Unfortunately it does not update the balance.