Thank you.
I've reset all heights to 0 (previously I had them at 1) and returning true from the "if" condition below.
I was able to start the xxxcoind.exe and it used the default %APPDATA% folder.
When I tried to start the wallet ( xxx-qt.exe or xxx-cli.exe), it complained about unable to lock the data directory.
Is this by design, that you cannot start daemon and wallet on the same node?
I ended up changing the data directory for wallet to somewhere else like "C:\data". I'm guessing this will duplicate the entire chain?
Then stopped the wallet and running this command in a loop to mine few blocks. Not sure how long this will take on a CPU or where I can check if the transactions are being processed (since I cannot open qt-exe while CLI.exe has locked the wallet)
@TheWolf666
Thank you for the great guide. I've followed the instructions to make changes and able to build the code on Windows. But I'm unable to start the wallet or the coin daemon server.
It fails in this code, in tx_check.cpp.
if (tx.IsCoinBase())
{
if (tx.vin[0].scriptSig.size() < 2 || tx.vin[0].scriptSig.size() > 100)
return state.Invalid(TxValidationResult::TX_CONSENSUS, "bad-cb-length");
}
I see that in Chainparams.cpp, there are new variables being set in the latest core code, for example
consensus.SegwitHeight = 481824;
I've set this to 1 but still no use.
Any pointers? I would like to create a brand new blockchain from start using bitcoin core code for experimental purposes.
Thanks in advance
I would comment the
return state.Invalid(TxValidationResult::TX_CONSENSUS, "bad-cb-length");
and do consensus.SegwitHeight = 0;
You are starting a new blockchain so you need all the BIPs starting at zero.
If you have a validation error, temporary comment the error, so that the first block (genesis) can be written into the blockchain.
The first block is always a problem, because the authors of Bitcoin Core are not helping the altcoin developers with their validation tests that are specific to Bitcoin.