Wallet Does Not Retrieve All Funds When Importing Existing Seed

Discussion in 'Questions' started by in-cred-u-lous, Sep 27, 2017.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. in-cred-u-lous

    in-cred-u-lous New Member

    Apr 25, 2016
    17
    4
    Oslo
    I ran into some ticket purchasing errors yesterday:

    "One or more tickets could not be purchased: failed to send split transaction: -1: Rejected transaction"

    I checked if there was a new version and lo and behold there was! So, I upgraded from 1.0.5 to 1.1.0. I already knew that the balances of my wallet might be off since the last upgrade, so I decided to create a new wallet with "dcrwallet --create" and reload all funds into the new wallet.

    Decred has now re-synched the blockchain, and the wallet is done reloading. However, less than a fifth of my funds now show up in the wallet and about 3 quarters of my PoS subsidy is missing too.

    Also, I am still getting the "failed to send split transaction" errors above whenever the ticket buyer attempts to purchase tickets.

    Can anyone explain the error to me, and what could be the cause of all the missing funds when importing the seed?
     
  2. kaida

    kaida New Member

    Jan 4, 2016
    78
    24
    Information Security
    San Francisco, CA
    Stake pool? I'm guessing you didn't import your script.
     
  3. in-cred-u-lous

    in-cred-u-lous New Member

    Apr 25, 2016
    17
    4
    Oslo
    I am staking solo, not with a pool.
     
  4. in-cred-u-lous

    in-cred-u-lous New Member

    Apr 25, 2016
    17
    4
    Oslo
    **SOLVED**

    I deleted my .dcrwallet folder, reimported the seed and rescanned the blockchain. All funds now show up.

    The difference from yesterday is that yesterday I imported the seed *during* the initial blockchain download and rescanned blocks during synchronization. Today, I rescanned after IBD had already completed. Otherwise, I did nothing else different.

    Not sure if devs read this forum, but it seems like a bug at first look.
     
  5. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    The issue here is that attempting to recover accounts (aka import the seed) before the chain is fully synced leads to incorrect results because the used address index isn't complete yet and thus, from the wallet's point of view, it's as if anything that involves those addresses never existed.

    This can be easily remedied by either clicking the rescan button in the graphical wallets or issuing a <code>rescanwallet</code> command for the the CLI wallet once the chain is fully synced.

    There is no need to redownload the chain, delete the wallet, or reimport the seed. Only a rescan is needed.
     

Share This Page