nochowderforyou / clams

Clam Project
MIT License
61 stars 58 forks source link

coincontrol window shows incorrect output weights #113

Closed dooglus closed 9 years ago

dooglus commented 9 years ago

src/qt/coincontroldialog.cpp does this:

        // weight
        int weight = floorf((GetTime() - out.tx->GetTxTime() - nStakeMinAge) * out.tx->vout[out.i].nValue / BitcoinUnits::factor(BitcoinUnits::BTC) / (double)(1440 * nTargetStakeSpacing));

Weight is no longer dependent on age except for setting the weight to 0 for coins which are immature or which have moved in the last 4 hours.

l0rdicon commented 9 years ago

fixed in https://github.com/nochowderforyou/clams/commit/5b4a7fe1e40b86301302d2b0dacb980a7a3670be

closing