-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi,
I'm following your tutorial How to Fork Bitcoin — Part 3 / Premiere, I'm able to run the commands:
wif 2358feea3003a1d16af3454be4cec2f6a7db43bfc7daa101b8949fff91ed64b4 -n mainnet -u 5J5rVM1awGg7UUbaDKNgYRsCd1GxQ4ESA2kFyxo3hTvckRghduy
./src/learncoind -server
...
2022-08-08T15:50:35Z init message: Starting network threads...
2022-08-08T15:50:35Z init message: Done loading
2022-08-08T15:50:35Z msghand thread start
2022-08-08T15:50:35Z opencon thread start
2022-08-08T15:50:35Z addcon thread start
2022-08-08T15:50:35Z dnsseed thread start
2022-08-08T15:50:35Z Loading addresses from DNS seeds (could take a while)
2022-08-08T15:50:35Z 0 addresses found from DNS seeds
2022-08-08T15:50:35Z dnsseed thread exit
2022-08-08T15:50:35Z net thread start
...
New Terminal window:
./src/learncoin-cli importprivkey 5J5rVM1awGg7UUbaDKNgYRsCd1GxQ4ESA2kFyxo3hTvckRghduy premine
no output
./src/learncoin-cli listlabels
[
"premine"
]
./src/learncoin-cli getbalance
0.00000000
./src/learncoin-cli generate 100
[
]
on Learncoind window:
2022-08-08T15:51:36Z Adding fixed seed nodes as DNS doesn't seem to be available.
2022-08-08T15:51:46Z [default wallet] RescanFromTime: Rescanning last 1 blocks
2022-08-08T15:51:46Z [default wallet] Rescan started from block 0...
2022-08-08T15:51:46Z [default wallet] AddToWallet 634c2897ab0decc26fce8dbedbdb5defd62837948de775499394cb862e91ec95 new
2022-08-08T15:54:37Z [default wallet] keypool reserve 1
2022-08-08T15:54:37Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:37Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:37Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:37Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:37Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:38Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:38Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:38Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:38Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:38Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:38Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:38Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:38Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:38Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:39Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:39Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T15:54:39Z [default wallet] keypool return 1
What am I missing?
Thanks
Some more Detailled info:
I expect output similar of these after run ./src/learncoin-cli generate 100 and Genesis block to be mined:
$ ./src/learncoin-cli -regtest importprivkey 91rV55q8XVkFSY6rqfGbR2RAGfdfZDmdVycD4b9Z3CffXWkEf5w premine
$ ./src/learncoin-cli -regtest listlabels
[
"premine"
]
$ ./src/learncoin-cli -regtest getbalance
0.00000000
$ ./src/learncoin-cli -regtest generate 100
[
"47891964a8e9186c08837acced24d57fd9f206a4f866ac2b27dc095501b49073",
"5e3ae93169c48151499c95c2168f7bf2eb10f589a16b1d48989b53c7fc50070f",
"386490b02b6e1f9fa8dcf381414609197144c4ca9a29e5a116287a97ec5f851e",
...
...
...
"2fb2b90afb1e31562d4f7cd84a4456642a3a897a1b911392ac4393b7dc4e9d96",
"6807d0b15041c6604e94d2ed316c24978faf33d8db49a1dccd3d95fc3ef27466",
"44c4425464821e67f8fb248c63b76dab86dcb3afa104b8bdc9f816a1272ff504"
]
$ ./src/learncoin-cli -regtest getbalance
1000000.00000000
instead I'm getting no blocks mined when i run:
./src/learncoin-cli generate 100
[
]
You can reproduce this by Download Learncoin1.0, compile on Ubuntu 14.04LTS without errors, go to Premine run the commands and replace "testnet" for "mainnet" if applicable, commands sample:
./src/learncoind -server
./src/learncoin-cli importprivkey 5J5rVM1awGg7UUbaDKNgYRsCd1GxQ4ESA2kFyxo3hTvckRghduy premine
./src/learncoin-cli listlabels
./src/learncoin-cli getbalance
./src/learncoin-cli generate 100
I get my code of Learncoin from Github releases : Learncoin1.0.
I'm testing in VirtualBox appliance with ubuntu 14.04LTS fresh install, 100GB HDD, 2048 RAM, 16MB GPU.
I can upload it for you if you want.
Degub Info
I'm joining the output from ./src/learncoind -server -debug when i sun ./src/learncoin-cli importprivkey 5J5rVM1awGg7UUbaDKNgYRsCd1GxQ4ESA2kFyxo3hTvckRghduy premine and ./src/learncoin-cli generate 100 for extra extra info:
2022-08-08T16:17:46Z tor: Not connected to Tor control port 127.0.0.1:9051, trying to reconnect
2022-08-08T16:17:52Z Received a POST request for / from 127.0.0.1:39162
2022-08-08T16:17:52Z ThreadRPCServer method=importprivkey user=__cookie__
2022-08-08T16:17:53Z [default wallet] RescanFromTime: Rescanning last 1 blocks
2022-08-08T16:17:53Z [default wallet] Rescan started from block 0...
2022-08-08T16:17:53Z [default wallet] AddToWallet 634c2897ab0decc26fce8dbedbdb5defd62837948de775499394cb862e91ec95 new
2022-08-08T16:17:55Z Flushing wallet.dat
2022-08-08T16:17:55Z Flushed wallet.dat 385ms
2022-08-08T16:17:58Z tor: Error connecting to Tor control socket
2022-08-08T16:17:58Z tor: Not connected to Tor control port 127.0.0.1:9051, trying to reconnect
2022-08-08T16:18:13Z Received a POST request for / from 127.0.0.1:39166
2022-08-08T16:18:13Z ThreadRPCServer method=generate user=__cookie__
2022-08-08T16:18:13Z [default wallet] keypool reserve 1
2022-08-08T16:18:13Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:13Z - Sanity checks: 0.00ms [0.00s (0.01ms/blk)]
2022-08-08T16:18:13Z - Fork checks: 0.03ms [0.00s (0.02ms/blk)]
2022-08-08T16:18:13Z - Connect 1 transactions: 0.01ms (0.012ms/tx, 0.000ms/txin) [0.00s (0.01ms/blk)]
2022-08-08T16:18:13Z - Verify 0 txins: 0.02ms (0.000ms/txin) [0.00s (0.02ms/blk)]
2022-08-08T16:18:13Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 0.12ms (total 0.13ms)
2022-08-08T16:18:13Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:13Z - Sanity checks: 0.01ms [0.00s (0.01ms/blk)]
2022-08-08T16:18:13Z - Fork checks: 0.37ms [0.00s (0.14ms/blk)]
2022-08-08T16:18:13Z - Connect 1 transactions: 0.34ms (0.342ms/tx, 0.000ms/txin) [0.00s (0.12ms/blk)]
2022-08-08T16:18:13Z - Verify 0 txins: 0.57ms (0.000ms/txin) [0.00s (0.21ms/blk)]
2022-08-08T16:18:13Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 5.33ms (total 5.34ms)
2022-08-08T16:18:13Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:13Z - Sanity checks: 0.00ms [0.00s (0.01ms/blk)]
2022-08-08T16:18:13Z - Fork checks: 0.08ms [0.00s (0.13ms/blk)]
2022-08-08T16:18:13Z - Connect 1 transactions: 0.07ms (0.069ms/tx, 0.000ms/txin) [0.00s (0.11ms/blk)]
2022-08-08T16:18:13Z - Verify 0 txins: 0.13ms (0.000ms/txin) [0.00s (0.19ms/blk)]
2022-08-08T16:18:13Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 0.46ms (total 0.47ms)
2022-08-08T16:18:13Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:13Z - Sanity checks: 0.00ms [0.00s (0.01ms/blk)]
2022-08-08T16:18:13Z - Fork checks: 0.09ms [0.00s (0.12ms/blk)]
2022-08-08T16:18:13Z - Connect 1 transactions: 0.07ms (0.070ms/tx, 0.000ms/txin) [0.00s (0.10ms/blk)]
2022-08-08T16:18:13Z - Verify 0 txins: 0.14ms (0.000ms/txin) [0.00s (0.18ms/blk)]
2022-08-08T16:18:13Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 0.45ms (total 0.46ms)
2022-08-08T16:18:13Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:13Z - Sanity checks: 0.01ms [0.00s (0.01ms/blk)]
2022-08-08T16:18:13Z - Fork checks: 0.10ms [0.00s (0.12ms/blk)]
2022-08-08T16:18:13Z - Connect 1 transactions: 0.07ms (0.070ms/tx, 0.000ms/txin) [0.00s (0.10ms/blk)]
2022-08-08T16:18:13Z - Verify 0 txins: 0.14ms (0.000ms/txin) [0.00s (0.17ms/blk)]
2022-08-08T16:18:13Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 11.69ms (total 11.70ms)
2022-08-08T16:18:13Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:13Z - Sanity checks: 0.01ms [0.00s (0.01ms/blk)]
2022-08-08T16:18:13Z - Fork checks: 1.02ms [0.00s (0.25ms/blk)]
2022-08-08T16:18:13Z - Connect 1 transactions: 0.10ms (0.099ms/tx, 0.000ms/txin) [0.00s (0.10ms/blk)]
2022-08-08T16:18:13Z - Verify 0 txins: 0.17ms (0.000ms/txin) [0.00s (0.17ms/blk)]
2022-08-08T16:18:13Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 5.65ms (total 5.66ms)
2022-08-08T16:18:13Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:13Z - Sanity checks: 0.00ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:13Z - Fork checks: 0.10ms [0.00s (0.23ms/blk)]
2022-08-08T16:18:13Z - Connect 1 transactions: 0.08ms (0.077ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:13Z - Verify 0 txins: 0.15ms (0.000ms/txin) [0.00s (0.17ms/blk)]
2022-08-08T16:18:13Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 3.81ms (total 3.81ms)
2022-08-08T16:18:13Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:13Z - Sanity checks: 0.01ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:13Z - Fork checks: 0.10ms [0.00s (0.21ms/blk)]
2022-08-08T16:18:13Z - Connect 1 transactions: 0.07ms (0.073ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:13Z - Verify 0 txins: 0.14ms (0.000ms/txin) [0.00s (0.16ms/blk)]
2022-08-08T16:18:13Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 14.22ms (total 14.23ms)
2022-08-08T16:18:14Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:14Z - Sanity checks: 0.00ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:14Z - Fork checks: 0.08ms [0.00s (0.20ms/blk)]
2022-08-08T16:18:14Z - Connect 1 transactions: 0.07ms (0.069ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:14Z - Verify 0 txins: 0.13ms (0.000ms/txin) [0.00s (0.16ms/blk)]
2022-08-08T16:18:14Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 0.46ms (total 0.47ms)
2022-08-08T16:18:14Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:14Z - Sanity checks: 0.01ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:14Z - Fork checks: 0.10ms [0.00s (0.19ms/blk)]
2022-08-08T16:18:14Z - Connect 1 transactions: 0.08ms (0.078ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:14Z - Verify 0 txins: 0.15ms (0.000ms/txin) [0.00s (0.16ms/blk)]
2022-08-08T16:18:14Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 6.29ms (total 6.29ms)
2022-08-08T16:18:14Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:14Z - Sanity checks: 0.00ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:14Z - Fork checks: 0.08ms [0.00s (0.18ms/blk)]
2022-08-08T16:18:14Z - Connect 1 transactions: 0.07ms (0.068ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:14Z - Verify 0 txins: 0.13ms (0.000ms/txin) [0.00s (0.16ms/blk)]
2022-08-08T16:18:14Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 0.46ms (total 0.46ms)
2022-08-08T16:18:14Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:14Z - Sanity checks: 0.01ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:14Z - Fork checks: 6.53ms [0.01s (0.67ms/blk)]
2022-08-08T16:18:14Z - Connect 1 transactions: 0.10ms (0.105ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:14Z - Verify 0 txins: 0.18ms (0.000ms/txin) [0.00s (0.16ms/blk)]
2022-08-08T16:18:14Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 21.81ms (total 21.82ms)
2022-08-08T16:18:14Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:14Z - Sanity checks: 0.01ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:14Z - Fork checks: 0.10ms [0.01s (0.63ms/blk)]
2022-08-08T16:18:14Z - Connect 1 transactions: 0.07ms (0.069ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:14Z - Verify 0 txins: 0.13ms (0.000ms/txin) [0.00s (0.16ms/blk)]
2022-08-08T16:18:14Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 11.54ms (total 11.54ms)
2022-08-08T16:18:14Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:14Z - Sanity checks: 0.00ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:14Z - Fork checks: 0.10ms [0.01s (0.59ms/blk)]
2022-08-08T16:18:14Z - Connect 1 transactions: 0.09ms (0.088ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:14Z - Verify 0 txins: 0.18ms (0.000ms/txin) [0.00s (0.16ms/blk)]
2022-08-08T16:18:14Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 3.79ms (total 3.79ms)
2022-08-08T16:18:14Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:14Z - Sanity checks: 0.00ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:14Z - Fork checks: 0.10ms [0.01s (0.56ms/blk)]
2022-08-08T16:18:14Z - Connect 1 transactions: 0.07ms (0.071ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:14Z - Verify 0 txins: 0.14ms (0.000ms/txin) [0.00s (0.16ms/blk)]
2022-08-08T16:18:14Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 12.35ms (total 12.36ms)
2022-08-08T16:18:14Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2022-08-08T16:18:14Z - Sanity checks: 0.01ms [0.00s (0.00ms/blk)]
2022-08-08T16:18:14Z - Fork checks: 0.10ms [0.01s (0.54ms/blk)]
2022-08-08T16:18:14Z - Connect 1 transactions: 0.08ms (0.076ms/tx, 0.000ms/txin) [0.00s (0.09ms/blk)]
2022-08-08T16:18:14Z - Verify 0 txins: 0.15ms (0.000ms/txin) [0.00s (0.16ms/blk)]
2022-08-08T16:18:14Z CreateNewBlock() packages: 0.01ms (0 packages, 0 updated descendants), validity: 5.96ms (total 5.96ms)
2022-08-08T16:18:14Z [default wallet] keypool return 1
2022-08-08T16:18:15Z tor: Error connecting to Tor control socket
2022-08-08T16:18:15Z tor: Not connected to Tor control port 127.0.0.1:9051, trying to reconnect