Post
Topic
Board Альтернативные криптовалюты
Re: NovaCoin (гибридная PoW/PoS на scrypt + Layer2) [жёсткая модерация]
by
svost
on 14/04/2017, 05:18:21 UTC
@Lasergun

Перекомпили клиента с заменой  string strAddress = params[1].get_str();

Ты нашел баг походу Smiley

Из кода битка
Code:
    std::string strAccount = AccountFromValue(request.params[0]);
    CBitcoinAddress address(request.params[1].get_str());
    if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid Bitcoin address");

В коде новы
Code:
Value sendfrom(const Array& params, bool fHelp)
{
    if (fHelp || params.size() < 3 || params.size() > 6)
        throw runtime_error(
            "sendfrom [minconf=1] [comment] [comment-to]\n"
            " is a real and is rounded to the nearest " + FormatMoney(nMinimumInputValue)
            + HelpRequiringPassphrase());

    string strAccount = AccountFromValue(params[0]);

    // Parse address
    CScript scriptPubKey;
    string strAddress = params[0].get_str();