Search content
Sort by

Showing 5 of 5 results by isp92074
Post
Topic
Board Altcoin Discussion
Re: *** Complete Guide on How to Create a New Alt Coin – Update 2019 ***
by
isp92074
on 02/05/2021, 23:02:58 UTC
how to do it ?,
I changed some files https://github.com/isp92074/b3c, but still only regtest version miners works ok
isp@isp:~/ntgbtminer$ python3 ntgbtminer.py Test 2N3SryuVcYR3y8wgMcw98T2ek3VU8HpoSeg
Mining block template, height 7...
    0.0000 KH/s

Solved a block! Block hash: 1abbc23f5a921cfe88d1a4bbcd1411340c0e25353469a35da47816ab69d27ef0
Submitting: 00000020120e25591b008f7b2c1fce3affb687a261a6ee6d3094efd0e34d8e185c21b15fa5be88a 1a5723be3c71c3213a0128d38668bc9c631a9a3f62c7ebc092001682979228f60ffff7f20000000 000101000000010000000000000000000000000000000000000000000000000000000000000000f fffffff0a01075465737400000000ffffffff0100f2052a010000001976a9146fe4b6ca0ddb5ed5 9215dabb005292207550b5a788ac00000000

Mining block template, height 8...
    160.6757 KH/s

-----------------------------------------

on mainnet some errors
python3 ntgbtminer.py Test bc1qaaak4zwyq2dqleztjmz8hy407mlx08nl7wjneu
Traceback (most recent call last):
  File "ntgbtminer.py", line 482, in <module>
    standalone_miner(sys.argv[1].encode().hex(), sys.argv[2])
  File "ntgbtminer.py", line 460, in standalone_miner
    block_template = rpc_getblocktemplate()
  File "ntgbtminer.py", line 69, in rpc_getblocktemplate
    return rpc("getblocktemplate", [{"rules": ["segwit"]}])
  File "ntgbtminer.py", line 52, in rpc
    with urllib.request.urlopen(request) as f:
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error

in bitcoinqt console


getblocktemplate

Bitcoin Core Clone is in initial sync and waiting for blocks... (code -10)

generatetoaddress 1 bc1qaaak4zwyq2dqleztjmz8hy407mlx08nl7wjneu

CreateNewBlock: TestBlockValidity failed: unexpected-witness, ContextualCheckBlock : unexpected witness data found (code -1)

Post
Topic
Board Altcoin Discussion
Re: *** Complete Guide on How to Create a New Alt Coin – Update 2019 ***
by
isp92074
on 24/04/2021, 20:23:49 UTC
How are you mining? via generatetoaddress or a miner?
1)generatetoaddress error
CreateNewBlock :TestBlockValidity failed unexpected-witness ContextualCheckBlock unexpected witness data found code -1
Post
Topic
Board Altcoin Discussion
Re: *** Complete Guide on How to Create a New Alt Coin – Update 2019 ***
by
isp92074
on 27/03/2021, 05:44:39 UTC
@isp92074 I had the same error, please check that SegWit height is not 1.
At the beginning try to leave the SegWit height as is.
Height was 0))now I made a consensus.segwit height  as in last bitcoin, but the error persists. testnet works without this error
Post
Topic
Board Altcoin Discussion
Re: *** Complete Guide on How to Create a New Alt Coin – Update 2019 ***
by
isp92074
on 21/03/2021, 07:43:42 UTC
Thanks your guide helps cloning Bitcoin latest version.

hi sir ,
dear may be you help me .
i do all by your instruction but have some errors

Validation.cpp is not finished yet. We have a problem with SEGWIT. It cannot work at height 1. So in the beginning, we need to disable some

1)IsNullDummyEnabled has the same problem, do the same to that function return true/


2)If ccminer cannot mine, then you can use my fixed version here: https://github.com/NicolasChoukroun/stratum


In the latest version I do not find a function IsNullDummyEnabled
1) to replace the return
2) I do not find C ++ stratum files for change
3) After compiling the QT wallet, the nodes are well connected and the sync is finished the tick in the lower right corner, but
in console command result 

getblocktemplate
= Bitcoin core is in initial sync and waiting for blocks code -10

but still still problems solo mining in yiimp pool issues the same synchronization error for added coin..

Stratum server issues a message - unknown method getblocktemplate 192.168.0.104
-
started easymainer on 192.168.0.4  issues a message
2 miner theads started using sha25 algo
HTTP request failed
json_rpc_call failed 

Please advise how to how to solve these problems??
 i need solo mininig on cpu for my cloned version & remove the synchronization error in the new Bitcoin core 21.99
[/quote]
Suggested:
// change the hash of BIPs to your genesis hash (see the genesis section) Huh is your genesis hash
// do it for main, testnet and regnet.
consensus.BIP16Exception = uint256S("0x???");
consensus.BIP34Hash = uint256S("0x???");

=>  you are doing an altcoin so all the BIP should start at Genesis or very early (see my last answer). So, take the hash from your blockchain and yes it should be the same as the assert.

// fix the checkpoint data with your genesis hash, do it for main,testnet and regnet
checkpointData = {{{0, uint256S("0x???")},}};

=> go in your blockchain and add checkpointData = {{{blocknumber, uint256S("hash")},}}; as checkpoint so that if someone change the the blockchain on purpose, the wallets will reject the change. Do it periodically so that you solidify your blockchain against attackers. Add many checkpoints as your blockchain grows, at block 1000, 10000, 50000, 100000, etc...

===========
Suggested: IsNullDummyEnabled has the same problem, do the same to that function.
Question: Cant find it?!! Is it in validation.cpp on the latest bitcoin version?

=> this I do not understand.

===========
Suggested:  Find this “return state.DoS(100, false, REJECT_INVALID, "bad-cb-height", false, "block height mismatch in coinbase");” and comment it.
Question: Cant find it?!! Is it in validation.cpp on the latest bitcoin version?

What I do find is this...

            return state.Invalid(BlockValidationResult::BLOCK_CONSENSUS, "bad-cb-height", "block height mismatch in coinbase");

=> the genesis block will shoot this error, so you need to comment it in order to have your wallet to mine, or you will not mine.
Also all similar errors due to SEGWITH security tests needs to be commented, at least for the first blocks. SEGWITH needs to check the block before, and there is none for the first blocks... it is impossible to start mining without commenting these.
then you can reinstall all the BIP tests that were blocking the mining, let say at block 1000 for example and change chainparams.cpp accordingly.



===========

Post
Topic
Board Altcoin Discussion
Re: *** Complete Guide on How to Create a New Alt Coin – Update 2019 ***
by
isp92074
on 19/03/2021, 04:05:21 UTC
Code:
Thanks your guide helps cloning Bitcoin latest version.


Validation.cpp is not finished yet. We have a problem with SEGWIT. It cannot work at height 1. So in the beginning, we need to disable some

1)IsNullDummyEnabled has the same problem, do the same to that function return true/


2)If ccminer cannot mine, then you can use my fixed version here: https://github.com/NicolasChoukroun/stratum

[/quote]

In the latest version I do not find a function IsNullDummyEnabled
1) to replace the return
2) I do not find C ++ stratum files for change
3) After compiling the QT wallet, the nodes are well connected and the sync is finished the tick in the lower right corner, but
in console command result 

getblocktemplate
= Bitcoin core is in initial sync and waiting for blocks code -10

but still still problems solo mining in yiimp pool issues the same synchronization error for added coin..

Stratum server issues a message - unknown method getblocktemplate 192.168.0.104
-
started easymainer on 192.168.0.4  issues a message
2 miner theads started using sha25 algo
HTTP request failed
json_rpc_call failed 

Please advise how to how to solve these problems??
 i need solo mininig on cpu for my cloned version & remove the synchronization error in the new Bitcoin core 21.99