@isp92074 don't activate SegWit at the beginning.
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)