Bitcoin Forum
September 27, 2024, 07:46:49 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Alternate cryptocurrencies / Altcoin Discussion / Re: [HOWTO] compile altcoin for windows on linux using mxe and mingw on: April 05, 2018, 12:16:48 PM
Hi everyone.
I'm trying to compile db, and getting this error. How to fix it?
Code:
...
checking if --enable-dtrace option specified... no
checking if --enable-systemtap option specified... no
checking if --enable-perfmon-statistics option specified... no
checking if --enable-uimutexes option specified... no
checking if --enable-umrw option specified... no
checking if --enable-atomicfileread option specified... no
checking if --with-cryptography option specified... yes
checking if --with-mutex=MUTEX option specified... no
checking if --with-tcl=DIR option specified... no
checking if --with-uniquename=NAME option specified... no
checking for x86-chmod... no
checking for chmod... chmod
checking for x86-cp... no
checking for cp... cp
checking for x86-ln... no
checking for ln... ln
checking for x86-mkdir... no
checking for mkdir... mkdir
checking for x86-rm... no
checking for rm... rm
checking for x86-mv... no
checking for mv... mv
checking for x86-sh... no
checking for sh... /bin/sh
checking for a BSD-compatible install... /usr/bin/install -c
checking for x86-cc... /home/mahin/Downloads/mxe/usr/bin/i686-w64-mingw32.static-gcc
checking whether the C compiler works... no
configure: error: in `/home/machin/Downloads/db-5.3.28/build_mxe':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

And I also have the same problem like saddam1997.
Does anybody know a way to fix it?
2  Local / Кодеры / Re: Некорректно генерируются PoS блоки. В чем пр on: April 03, 2018, 09:43:18 AM
Пошел дальше по стеку вызовов, обнаружил где лежит корень проблемы.
А проблема в методе GetStakeModifierSelectionInterval.
Вернее в том, что новое генерируемое значение nStakeModifierTime не попадает в промежуток возвращенный этим методом.
Там условие
Code:
while (nStakeModifierTime < pindexFrom->GetBlockTime() + nStakeModifierSelectionInterval)
Соотвестенно чтобы цикл закончился надо чтобы значение nStakeModifierTime стало больше чем pindexFrom->GetBlockTime() плюс этот интервал. А метод генерирует значение довольно больше, 21135. Поставил вручнуе значение 100 - сразу заработало, блок сгенерировался и принялся.
От чего зависит значение этого метода? Как сделать чтобы он возвращал правильное значение?
3  Local / Кодеры / Re: Некорректно генерируются PoS блоки. В чем пр on: April 03, 2018, 07:02:22 AM
Выяснил следующее - CoinStake транзация пытается сгенерироваться в методе wallet.cpp/CreateCoinStake как и положено.
Code:
bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int64_t nSearchInterval, int64_t nFees, CTransaction& txNew, CKey& key)
{
    CBlockIndex* pindexPrev = pindexBest;
    CBigNum bnTargetPerCoinDay;
    bnTargetPerCoinDay.SetCompact(nBits);

    txNew.vin.clear();
    txNew.vout.clear();

    // Mark coin stake transaction
    CScript scriptEmpty;
    scriptEmpty.clear();
    txNew.vout.push_back(CTxOut(0, scriptEmpty));

    // Choose coins to use
    int64_t nBalance = GetBalance();

    if (nBalance <= nReserveBalance)
        return false;

    vector<const CWalletTx*> vwtxPrev;

    set<pair<const CWalletTx*,unsigned int> > setCoins;
    int64_t nValueIn = 0;

    // Select coins with suitable depth
    if (!SelectCoinsForStaking(nBalance - nReserveBalance, setCoins, nValueIn))
        return false;
    if (setCoins.empty())
        return false;

    int64_t nCredit = 0;
    CScript scriptPubKeyKernel;
    CTxDB txdb("r");
    BOOST_FOREACH(PAIRTYPE(const CWalletTx*, unsigned int) pcoin, setCoins)
    {
        static int nMaxStakeSearchInterval = 60;
        bool fKernelFound = false;
        for (unsigned int n=0; n<min(nSearchInterval,(int64_t)nMaxStakeSearchInterval) && !fKernelFound && pindexPrev == pindexBest; n++)
        {
            boost::this_thread::interruption_point();
            // Search backward in time from the given txNew timestamp
            // Search nSearchInterval seconds back up to nMaxStakeSearchInterval
            COutPoint prevoutStake = COutPoint(pcoin.first->GetHash(), pcoin.second);
            int64_t nBlockTime;
            if (CheckKernel(pindexPrev, nBits, txNew.nTime - n, prevoutStake, &nBlockTime))
            {
                // Found a kernel
                LogPrint("coinstake", "CreateCoinStake : kernel found\n");
                vector<valtype> vSolutions;
                txnouttype whichType;
                CScript scriptPubKeyOut;
                scriptPubKeyKernel = pcoin.first->vout[pcoin.second].scriptPubKey;
                if (!Solver(scriptPubKeyKernel, whichType, vSolutions))
                {
                    LogPrint("coinstake", "CreateCoinStake : failed to parse kernel\n");
                    break;
                }
                LogPrint("coinstake", "CreateCoinStake : parsed kernel type=%d\n", whichType);
                if (whichType != TX_PUBKEY && whichType != TX_PUBKEYHASH)
                {
                    LogPrint("coinstake", "CreateCoinStake : no support for kernel type=%d\n", whichType);
                    break;  // only support pay to public key and pay to address
                }
                if (whichType == TX_PUBKEYHASH) // pay to address type
                {
                    // convert to pay to public key type
                    if (!keystore.GetKey(uint160(vSolutions[0]), key))
                    {
                        LogPrint("coinstake", "CreateCoinStake : failed to get key for kernel type=%d\n", whichType);
                        break;  // unable to find corresponding public key
                    }
                    scriptPubKeyOut << key.GetPubKey() << OP_CHECKSIG;
                }
                if (whichType == TX_PUBKEY)
                {
                    valtype& vchPubKey = vSolutions[0];
                    if (!keystore.GetKey(Hash160(vchPubKey), key))
                    {
                        LogPrint("coinstake", "CreateCoinStake : failed to get key for kernel type=%d\n", whichType);
                        break;  // unable to find corresponding public key
                    }

                    if (key.GetPubKey() != vchPubKey)
                    {
                        LogPrint("coinstake", "CreateCoinStake : invalid key for kernel type=%d\n", whichType);
                        break; // keys mismatch
                    }

                    scriptPubKeyOut = scriptPubKeyKernel;
                }

                txNew.nTime -= n;
                txNew.vin.push_back(CTxIn(pcoin.first->GetHash(), pcoin.second));
                nCredit += pcoin.first->vout[pcoin.second].nValue;
                vwtxPrev.push_back(pcoin.first);
                txNew.vout.push_back(CTxOut(0, scriptPubKeyOut));

                LogPrint("coinstake", "CreateCoinStake : added kernel type=%d\n", whichType);
                fKernelFound = true;
                break;
            }
        }

        if (fKernelFound)
            break; // if kernel is found stop searching
    }

    if (nCredit == 0 || nCredit > nBalance - nReserveBalance)
        return false;

    BOOST_FOREACH(PAIRTYPE(const CWalletTx*, unsigned int) pcoin, setCoins)
    {
        // Attempt to add more inputs
        // Only add coins of the same key/address as kernel
        if (txNew.vout.size() == 2 && ((pcoin.first->vout[pcoin.second].scriptPubKey == scriptPubKeyKernel || pcoin.first->vout[pcoin.second].scriptPubKey == txNew.vout[1].scriptPubKey))
            && pcoin.first->GetHash() != txNew.vin[0].prevout.hash)
        {
            // Stop adding more inputs if already too many inputs
            if (txNew.vin.size() >= 10)
                break;
            // Stop adding inputs if reached reserve limit
            if (nCredit + pcoin.first->vout[pcoin.second].nValue > nBalance - nReserveBalance)
                break;
            // Do not add additional significant input
            if (pcoin.first->vout[pcoin.second].nValue >= GetStakeCombineThreshold())
                continue;

            txNew.vin.push_back(CTxIn(pcoin.first->GetHash(), pcoin.second));
            nCredit += pcoin.first->vout[pcoin.second].nValue;
            vwtxPrev.push_back(pcoin.first);
        }
    }

    // Calculate reward
    {
        int64_t nReward = GetProofOfStakeReward(pindexPrev, 0, nFees);
        if (nReward <= 0)
            return false;
        LogPrintf("nReward <= 0\n");

        nCredit += nReward;
    }

    if (nCredit >= GetStakeSplitThreshold())
        txNew.vout.push_back(CTxOut(0, txNew.vout[1].scriptPubKey)); //split stake

    // Set output amount
    if (txNew.vout.size() == 3)
    {
        txNew.vout[1].nValue = (nCredit / 2 / CENT) * CENT;
        txNew.vout[2].nValue = nCredit - txNew.vout[1].nValue;
    }
    else
        txNew.vout[1].nValue = nCredit;

    // Sign
    int nIn = 0;
    BOOST_FOREACH(const CWalletTx* pcoin, vwtxPrev)
    {
        if (!SignSignature(*this, *pcoin, txNew, nIn++))
            return error("CreateCoinStake : failed to sign coinstake");
    }

    // Limit size
    unsigned int nBytes = ::GetSerializeSize(txNew, SER_NETWORK, PROTOCOL_VERSION);
    if (nBytes >= MAX_BLOCK_SIZE_GEN/5)
        return error("CreateCoinStake : exceeded coinstake size limit");

    // Successfully generated coinstake
    return true;
}
Но она не проходит проверку if (nCredit == 0 || nCredit > nBalance - nReserveBalance).
А именно потому, что nCredit равен нулю.
Что это вообще за переменная? За что она отвечает?
Она должна суммировать какие-то значения здесь nCredit += pcoin.first->vout[pcoin.second].nValue;
Но этого не просходит.
4  Local / Кодеры / Re: Некорректно генерируются PoS блоки. В чем пр on: April 03, 2018, 06:45:06 AM
Я знаю что не будет работать. Но монеты есть, и staking горит.
Ок, спасибо за помощь)

Кстати, с какого возраста монеты начинают майнить? Вы этот вопрос изучили?
В оригинальном коде стоит 8 часов минимум, но я ставил меньше для теста.
5  Local / Кодеры / Re: Некорректно генерируются PoS блоки. В чем пр on: April 02, 2018, 02:06:54 PM
Если высота блоков не достигла значения nLastPOWBlock, это ведь не значит что PoS не может работать?

PoS не будет работать если нет созревших монет.
Буду копать инфу по данной ошибке, по итогам отпишусь.
Может кто-то из форумчан встречался с этой проблемой и ответит Вам. Удачи!
Я знаю что не будет работать. Но монеты есть, и staking горит.
Ок, спасибо за помощь)
6  Local / Кодеры / Re: Как переключиться с PoW на PoS? on: April 02, 2018, 01:34:50 PM
Допустим я хочу иметь всего 125 млн монет. 100 млн - премайнинг, 25 млн для стекинга.
В начале я майню эти 100 млн обычным PoW майнингом. И потом я должен его отключить и оставить только PoS?
Ведь если я оставлю все как есть, то кто угодно сможет быстро намайнить монеты как я в начале. И изменить сложность майнинга потом я тоже не можу, так как она зашита в генезис блоке.
А если поставить большую сложность майнинга с самого начала, то мой премайнинг займет года.
По всей видимости, Вы путаете понятия. Pre-mining - это когда в генезис (то есть самый первый) блок сразу включаются транзакции по переводу монет на Ваши адреса. То есть эти монеты не нужно майнить ни по алгоритму Proof-of-Work, ни по Proof-of-Stake. Полагаю, Ваша цель - монета на PoS, 80% монет которой принадлежит Вам. В этом случае, PoW вообще не нужен.
Насколько мне известно, то что зашито в генезис блоке unspendable.
Так что так не получится)
Можно намайнить первым блоком всю планируемую сумму, а потом сверху накидать блоков чтоб коины стали mature.
Но в генезисе ничего не намайнишь.
7  Local / Кодеры / Re: Некорректно генерируются PoS блоки. В чем пр on: April 02, 2018, 01:29:11 PM
Уточните еще один момент. С какой высоты начинаются PoS блоки?
Я пробовал и ставить маленькое (100) и оставлять как есть - результат тот же.
Если высота блоков не достигла значения nLastPOWBlock, это ведь не значит что PoS не может работать?
Просто до того времени может быть как PoW так и PoS, а когда высота станет больше, будут приниматься только PoS.

Интересно  Smiley
Сколько блоков для подтверждения... ?
Поставил nCoinbaseMaturity = nStakeMinConfirmations = 10.
8  Local / Кодеры / Re: Некорректно генерируются PoS блоки. В чем пр on: April 02, 2018, 01:22:43 PM
Уточните еще один момент. С какой высоты начинаются PoS блоки?
В блэккойне стоит значение 10000.
Я пробовал и ставить маленькое (100) и оставлять как есть - результат тот же.
Если высота блоков не достигла значения nLastPOWBlock, это ведь не значит что PoS не может работать?
Просто до того времени может быть как PoW так и PoS, а когда высота станет больше, будут приниматься только PoS.
9  Local / Кодеры / Re: Некорректно генерируются PoS блоки. В чем пр on: April 02, 2018, 01:13:45 PM
Эти https://github.com/CoinBlack/blackcoin
10  Local / Кодеры / Re: Некорректно генерируются PoS блоки. В чем пр on: April 02, 2018, 12:17:12 PM
Я клонирую альткойн. Все работает отлично. За исключеним самого главного - не генерируются PoS блоки.

Можно узнать какой альткоин Вы клонируете?

Советую посмотреть начались ли PoS блоки в том альткоине, который Вы клонируете.
Если это баг не Ваш, то скорее всего его решит команда, чей код Вы берете за исходный.

BlackCoin. Да, там есть PoS, он уже давно только на нем и работает.
11  Local / Кодеры / Некорректно генерируются PoS блоки. В чем при on: April 02, 2018, 11:51:00 AM
Я клонирую альткойн. Все работает отлично. За исключеним самого главного - не генерируются PoS блоки.
Есть несколько клиентов, они соеденены, значок Staking светится (хотя всегда пишет network weight - 0).
На обычном PoW майнинге все работает как надо, но моя цель в конечном итоге перевести валюту только на PoS, а он не работает.
Когда майнинг выключен, новые блоки не генерируются и соответсвенно транзации не проходят.

Пошарив код и дебаг логи, обнаружил что блоки генерируются. НО не принимаются, т.к. они имеют некорректную структуру.
А именно не проходит последнее условие в проверке isCoinStake
Code:
    bool IsCoinStake() const
    {
        // the coin stake transaction is marked with the first output empty
        return (vin.size() > 0 && (!vin[0].prevout.IsNull()) && vout.size() >= 2 && vout[0].IsEmpty());
    }
То есть, как видно из комментария и условия, для валидной транзакции нулевой vout должен быть пустым.
У меня же, по каким-то причинам, на этом месте стоит сама транзакция перевода монет.

Вот пример блока, который пытается сгенерироваться (проблема там, где 52 строчка кода - https://pastebin.com/M7xh9Bt0)
Code:
{
   "hash":"af19fb5ce7a8f8b5c1ff4a71e781f3815301065a7a01264e05dacf8bdd15ecc1",
   "confirmations":-1,
   "size":378,
   "version":1,
   "merkleroot":"0000000000000000000000000000000000000000000000000000000000000000",
   "time":1522419811,
   "nonce":0,
   "bits":"1e0fffff",
   "tx":[
      {
         "txid":"5e069b3266173804322a8cff18ddc9e199e9886948f5374ecb4d32387458dadf",
         "version":1,
         "time":1522419811,
         "locktime":0,
         "vin":[
            {
               "coinbase":"028200",
               "sequence":4294967295
            }
         ],
         "vout":[
            {
               "value":0.00000000,
               "n":0,
               "scriptPubKey":{
                  "asm":"",
                  "hex":"",
                  "type":"nonstandard"
               }
            }
         ]
      },
      {
         "txid":"9a070cac3b9cc72e9800c85cf171b38f758fb510af5e87f7481e2f30be85643b",
         "version":1,
         "time":1522419786,
         "locktime":76,
         "vin":[
            {
               "txid":"b32118915e6da3b8c15b03900b422b40f6f7a7b6e41ab5e62b1553aa7fe8e7a6",
               "vout":0,
               "scriptSig":{
                  "asm":"30440220334c507ef89db58cc9636be1aad6f83670fd1274b66f8266528791c53a000196022038869d9b4d825b6a27009e836a03dea0857afa02b156126fb01c4bcf3250167201 02115f9d6a68fa6811bb11dec153930b93b59e9f4304475d66358ca1a17150989f",
                  "hex":"4730440220334c507ef89db58cc9636be1aad6f83670fd1274b66f8266528791c53a000196022038869d9b4d825b6a27009e836a03dea0857afa02b156126fb01c4bcf32501672012102115f9d6a68fa6811bb11dec153930b93b59e9f4304475d66358ca1a17150989f"
               },
               "sequence":4294967294
            }
         ],
         "vout":[
            {
               "value":99996997.99950001,
               "n":0,
               "scriptPubKey":{
                  "asm":"OP_DUP OP_HASH160 5297cc5e2ef14653ec94f3b8496efd31dc2408b7 OP_EQUALVERIFY OP_CHECKSIG",
                  "hex":"76a9145297cc5e2ef14653ec94f3b8496efd31dc2408b788ac",
                  "reqSigs":1,
                  "type":"pubkeyhash",
                  "addresses":[
                     "BBynsaS3XdgJhhXwfy68r1rfnK18FHQuXZ"
                  ]
               }
            },
            {
               "value":1.00000000,
               "n":1,
               "scriptPubKey":{
                  "asm":"OP_DUP OP_HASH160 0aadf7a989f4a49e81c42a5111866a384b759b49 OP_EQUALVERIFY OP_CHECKSIG",
                  "hex":"76a9140aadf7a989f4a49e81c42a5111866a384b759b4988ac",
                  "reqSigs":1,
                  "type":"pubkeyhash",
                  "addresses":[
                     "B5RYn6v57b4rKkv9JNgUBEJj3aVhM2xnDX"
                  ]
               }
            }
         ]
      }
   ]
}
И там нету нулевого vout в первой транзации (именно в первой, т.е. по порядку - второй).
Никак не могу понять в чем причина. Я в коде ничего не менял что имело бы отношение к этому.
12  Local / Кодеры / Что такое IsProtocolV2/V3? on: March 29, 2018, 10:08:50 AM
Что такое IsProtocolV2/V3 в коде альткойна? Для чего это нужно?
13  Alternate cryptocurrencies / Altcoin Discussion / What is IsProtocolV2/V3? on: March 29, 2018, 10:01:02 AM
What is IsProtocolV2/V3 in Altcoin code? For what is stand for?
14  Local / Кодеры / Как переключиться с PoW на PoS? on: March 27, 2018, 08:37:53 AM
Я клонирую новый альткоин.
Все работает отлично и даже намайнил первые монеты.
Но я столкнулся с проблемой и не совсем понимаю как надо сделать дальше.

Допустим я хочу иметь всего 125 млн монет. 100 млн - премайнинг, 25 млн для стекинга.
В начале я майню эти 100 млн обычным PoW майнингом. И потом я должен его отключить и оставить только PoS?
Ведь если я оставлю все как есть, то кто угодно сможет быстро намайнить монеты как я в начале. И изменить сложность майнинга потом я тоже не можу, так как она зашита в генезис блоке.
А если поставить большую сложность майнинга с самого начала, то мой премайнинг займет года.

В общем, как это должно быть реализовано?
И если PoW надо отключить потом, то как это правильно сделать?
15  Alternate cryptocurrencies / Altcoin Discussion / How to switch from PoW to PoS? Do I need this? on: March 27, 2018, 08:28:00 AM
I'm cloning new altcoin. Everything goes nice.
I already have a working wallet and even premine some coins.
But I stumbled in one problem.

Let's say I want to have 125 million coins at all. 100 million is premine and 25 million for staking.
So on start, I premine 100 million using regular PoW. And then I have to turn off PoW and left only PoS?
Because if I left PoW, than everybody will be able to mine new coins easily like me on start. I can't change mining difficulty later because difficulty is built in genesis block.
And if I set big difficulty from the start that my premining will take a years.

So how should it work?
16  Alternate cryptocurrencies / Mining (Altcoins) / Permanent "booooo" when mining on: March 21, 2018, 12:47:42 PM
I'm trying to clone altcoin.
Now I proceed to the most important step - premining coins.
So I connected two nodes by LAN, created conf files, like this
Code:
rpcuser=host1
rpcpassword=hostpwd1
rpcallowip=*
daemon=1
server=1
listen=1
port=15814
rpcport=15815
addnode=192.168.1.100
addnode=192.168.1.101
After both clients connected I start mining with cpuminer like this
Code:
./minerd -o http://127.0.0.1:15815/ --userpass=host1:hostpwd1 --coinbase-addr=*******************************
Miner starts, works. But time to time it throws messages "booooo", and never "yay!!!". So all blocks rejected by server.
Example of output
Code:
[2018-03-20 16:34:18] thread 0: 16404 hashes, 3.27 khash/s
[2018-03-20 16:34:23] thread 3: 15396 hashes, 3.06 khash/s
[2018-03-20 16:34:23] thread 2: 16512 hashes, 3.31 khash/s
[2018-03-20 16:34:23] thread 1: 16332 hashes, 3.27 khash/s
[2018-03-20 16:34:23] thread 0: 16368 hashes, 3.28 khash/s
[2018-03-20 16:34:28] thread 3: 15300 hashes, 3.18 khash/s
[2018-03-20 16:34:28] thread 2: 16548 hashes, 3.19 khash/s
[2018-03-20 16:34:28] thread 1: 16356 hashes, 3.27 khash/s
[2018-03-20 16:34:28] thread 0: 16392 hashes, 3.27 khash/s
[2018-03-20 16:34:33] thread 3: 15924 hashes, 3.23 khash/s
[2018-03-20 16:34:33] thread 2: 15972 hashes, 3.15 khash/s
[2018-03-20 16:34:33] thread 1: 16344 hashes, 3.27 khash/s
[2018-03-20 16:34:33] thread 0: 16356 hashes, 3.27 khash/s
[2018-03-20 16:34:36] thread 0: 8088 hashes, 3.27 khash/s
[2018-03-20 16:34:36] accepted: 0/6 (0.00%), 12.92 khash/s (booooo)
What can be wrong? Is it ok, just need more time?
All the solutions I've found on the internet says that you using wrong --algo. But that's now my case.
I don't know any more probable reasons to cause that.
17  Local / Майнеры / Майнер постоянно выдает "booooo" on: March 21, 2018, 12:33:11 PM
Я пытаюсь клонировать альткойн.
Вроде все шаги сделал, все работает.
Теперь пытаюсь намайнить первые монеты.
Я соединил два компа по кабелю напрямую, создал conf файл, запустил клиенты, клиенты видят друг друга.
Code:
rpcuser=host1
rpcpassword=hostpwd1
rpcallowip=*
daemon=1
server=1
listen=1
port=15814
rpcport=15815
addnode=192.168.1.100
addnode=192.168.1.101
Потом запускаю cpuminer
Code:
./minerd -o http://127.0.0.1:15815/ --userpass=host1:hostpwd1 --coinbase-addr=*******************************
Майнер запускается, работает. Но постоянно выдает сообщения "booooo", типа шара отколнена пулом.
Пример вывода майнера
Code:
[2018-03-21 12:23:13] thread 0: 15816 hashes, 3.21 khash/s
[2018-03-21 12:23:13] thread 1: 16356 hashes, 3.26 khash/s
[2018-03-21 12:23:13] thread 2: 16080 hashes, 3.18 khash/s
[2018-03-21 12:23:18] thread 3: 16392 hashes, 3.28 khash/s
[2018-03-21 12:23:18] thread 0: 16032 hashes, 3.20 khash/s
[2018-03-21 12:23:18] thread 1: 16320 hashes, 3.27 khash/s
[2018-03-21 12:23:18] thread 2: 15624 hashes, 3.17 khash/s
[2018-03-21 12:23:18] accepted: 0/875 (0.00%), 12.92 khash/s (booooo)
В чем может быть проблема?
Все решения которые я нагуглил по даной теме сводятся к тому что либо "вы выбрали не тот алгоритм майнинга" либо "у вас кривой майнер - скачайте нормальный". Оба эти варианта я уже пробовал.
Есть идеи?
18  Alternate cryptocurrencies / Altcoin Discussion / Permanent "booooo" when mining on: March 20, 2018, 02:44:56 PM
I'm trying to clone altcoin.
Now I proceed to the most important step - premining coins.
So I connected two nodes by LAN, created conf files, like this
Code:
rpcuser=host1
rpcpassword=hostpwd1
rpcallowip=*
daemon=1
server=1
listen=1
port=15814
rpcport=15815
addnode=192.168.1.100
addnode=192.168.1.101
After both clients connected I start mining with cpuminer like this
Code:
./minerd -o http://127.0.0.1:15815/ --userpass=host1:hostpwd1 --coinbase-addr=*******************************
Miner starts, works. But time to time it throws messages "booooo", and never "yay!!!". So all blocks rejected by server.
Example of output
Code:
[2018-03-20 16:34:18] thread 0: 16404 hashes, 3.27 khash/s
[2018-03-20 16:34:23] thread 3: 15396 hashes, 3.06 khash/s
[2018-03-20 16:34:23] thread 2: 16512 hashes, 3.31 khash/s
[2018-03-20 16:34:23] thread 1: 16332 hashes, 3.27 khash/s
[2018-03-20 16:34:23] thread 0: 16368 hashes, 3.28 khash/s
[2018-03-20 16:34:28] thread 3: 15300 hashes, 3.18 khash/s
[2018-03-20 16:34:28] thread 2: 16548 hashes, 3.19 khash/s
[2018-03-20 16:34:28] thread 1: 16356 hashes, 3.27 khash/s
[2018-03-20 16:34:28] thread 0: 16392 hashes, 3.27 khash/s
[2018-03-20 16:34:33] thread 3: 15924 hashes, 3.23 khash/s
[2018-03-20 16:34:33] thread 2: 15972 hashes, 3.15 khash/s
[2018-03-20 16:34:33] thread 1: 16344 hashes, 3.27 khash/s
[2018-03-20 16:34:33] thread 0: 16356 hashes, 3.27 khash/s
[2018-03-20 16:34:36] thread 0: 8088 hashes, 3.27 khash/s
[2018-03-20 16:34:36] accepted: 0/6 (0.00%), 12.92 khash/s (booooo)
What can be wrong? Is it ok, just need more time?
All the solutions I've found on the internet says that you using wrong --algo. But that's now my case.
I don't know any more probable reasons to cause that.
19  Alternate cryptocurrencies / Altcoin Discussion / How to create (mine or premine) first coins in proof-of-stake cryptocurrency? on: March 19, 2018, 07:56:58 AM
I have read about POW and POS proof type.
I have little understanding of how to create first coins when cryptocurrency uses POW proof type.
You need to connect at least two nodes and start common mining.
But POS proof type works based on possession some value of coins. BUT how to create first coins if I need coins for mining?
I have read a lot of google search pages but didn't found a detailed explanation how should it work.
I just can't understand the principle. Because you need coins for mining, but on start, there are no coins.
So I stuck in a loop)
20  Alternate cryptocurrencies / Altcoin Discussion / Which coins has stealth wallets? on: March 16, 2018, 08:40:45 AM
Is there any comparison table or list of cryptocurrencies and their main features? Because I can't look up smth valuable.
Do you know any coins with POS (or POS/POW) proof type and high anonymity (stealth addresses, tor implementation)?
And would be nice if it is not abandoned project and it's still developing.
The best matching cases that I've found for now it is BlackCoin and ShadowCoin.
But as far as I know, there is no implementation of stealth wallets.
Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!