Hi,

I run a bitcoin server which have acting strange the latest 3-4 days. For some reason the unconfirmed balance when running bitcoin-cli getunconfirmedbalance shows up as 50.589243 BTC which of course isn't true.

How do I reset this? Why did this occur? Tried both v0.12 and v0.12.99, same problem.

Thanks in advance,
Nori

{
                    CAmount nCredit = pcoin.first->vout[pcoin.second].nValue;
                    
                    
                    
                    
                    int age = pcoin.first->GetDepthInMainChain();
                    assert(age >= 0);
                    if (age != 0)
                        age += 1;
                    dPriority += (double)nCredit * age;
                }
                const CAmount nChange = nValueIn - nValueToSelect;
                if (nChange > 0)
                {
                    
                    
                    
                    CScript scriptChange;
                    
                    if (coinControl && !boost::get<CNoDestination>(&coinControl->destChange))
                        scriptChange = GetScriptForDestination(coinControl->destChange);
                    
                    else
                    {