Post
Topic
Board Announcements (Altcoins)
Re: [ANN][DUCK]DuckDuckCoin - Kimoto Gravity Well - Genesis Egg Recovered!
by
drakoin
on 11/02/2014, 14:20:20 UTC

We have a PROBLEM in the -QT client !
"transaction amount too small"


try small tx!

error message "transaction amount too small"
then error "transaction creation failed"
and tx is not executed!

bug bounty for finding this to dEvC59caZu5oM3rcAPhF5mgEyZ2KGPHjwY please

. . . .. ... . . . . . .. .. .... ........ .. . .. .. . ... . .. . .. . . .. .. . ... .... ...... . .... .. . .. ... . . . .. ... ... . . . . . . .

EDIT:

not totally sure, but I guess it's somewhere here, isn't it?

https://github.com/duckduckcoin/duckduckcoin/search?p=2&q=transaction+amount+too+small&ref=cmdform
leads me to https://github.com/duckduckcoin/duckduckcoin/blob/78b3004e28f3d5270dfd1d37a5cff85e8f03560f/src/wallet.cpp

and in line 1188 of src/wallet.cpp I find

Code:
if (txout.IsDust())
                    {
                        strFailReason = _("Transaction amount too small");
                        return false;
                    }


now I am searching for https://github.com/duckduckcoin/duckduckcoin/search?q=IsDust&ref=cmdform
and I find https://github.com/duckduckcoin/duckduckcoin/blob/aa2b1c48bc5a0855823545544ba6bab975d204ee/src/main.cpp#L358

Code:
bool CTxOut::IsDust() const
{
    // "Dust" is defined in terms of CTransaction::nMinRelayTxFee,
    // which has units satoshis-per-kilobyte.
    // If you'd pay more than 1/3 in fees
    // to spend something, then we consider it dust.
    // A typical txout is 34 bytes big, and will
    // need a CTxIn of at least 148 bytes to spend,
    // so dust is a txout less than 54 uDUCK
    // (5460 satoshis) with default nMinRelayTxFee
    return ((nValue*1000)/(3*((int)GetSerializeSize(SER_DISK,0)+148)) < CTransaction::nMinRelayTxFee);
}

hmmmm .... I have been mining for hours now, and my total wealth is only 0.00004456 DUCK

I really want to share some of that, but not most of it.