That's really weird, indeed. Thanks for having noticed it.
I will wait a bit to also generate the situation on my side, since this is not a blocking issue yet. But we need to fix this for middle/long term as this is a security concern.
I've rewritten the way proof-of-work engine dialogs with its thread. Hope it will be better this time, I close the issue for now, but do not hesitate to reopen it later on if you reproduce it.
I have checked, on the node, the block is not on the pile of the chain when that block doesn't exist on the network.
May be the node don't consider the block was found and do nothing and continue generating it.
2017-02-27T19:59:25+01:00 - info: Matched 5 zeros 0000085CCE4EAFC26FDD2562EC2051B60A304730623C356C8F7BC642DC73D52D with Nonce = 10300000017692 for block#9742 by J78bPU2017-02-27T19:59:25+01:00 - info: ENGINE #3 HAS FOUND A PROOF2017-02-27T19:59:25+01:00 - info: Stop proof-of-work worker #12017-02-27T19:59:25+01:00 - info: Stop proof-of-work worker #22017-02-27T19:59:25+01:00 - info: Stop proof-of-work worker #32017-02-27T19:59:25+01:00 - info: Stop proof-of-work worker #42017-02-27T19:59:26+01:00 - info: Done: 0000085CCE4EAFC26FDD2562EC2051B60A304730623C356C8F7BC642DC73D52D in 290.34s (17691 tests, ~60.93 tests/s)2017-02-27T19:59:26+01:00 - info: FOUND proof-of-work with 4 leading zeros followed by [0-3]!2017-02-27T19:59:26+01:00 - info: Generating proof-of-work with 4 leading zeros followed by [0-3]... (CPU usage set to 29%)for block#9742 J78bPU2017-02-27T19:59:26+01:00 - info: Stop proof-of-work worker #12017-02-27T19:59:26+01:00 - info: Stop proof-of-work worker #22017-02-27T19:59:26+01:00 - info: Stop proof-of-work worker #32017-02-27T19:59:26+01:00 - info: Stop proof-of-work worker #42017-02-27T19:59:38+01:00 - info: Pulling blocks from the network...2017-02-27T19:59:38+01:00 - info: Peer 8KTEFQS78HwEz1NK627rNsYwENxNXJyvtyMAyfKPXZRB unreachable: now considered as DOWN.2017-02-27T19:59:39+01:00 - info: Will pull blocks from the network in 1 min 6 sec2017-02-27T19:59:41+01:00 - info: Matched 3 zeros 00098CF18FFDA1B1F52B1350CB439D6E64A9B49F6080FC845AD304937B8A16F1 with Nonce = 10100000001045 for block#9742 by J78bPU2017-02-27T19:59:48+01:00 - warn: Pulling not finished after 10000 ms, restart PoW
May I had to restart the node to take into account the patch?
curious, because it's working well for me,
i just put this code on the new version of duniter v0.90.9 and it's working too.
2017-03-01T12:38:44+01:00 - warn: The proof-of-work generation was canceled: Proof-of-work computation canceled because block received2017-03-01T12:38:44+01:00 - trace: PoW loops = 182017-03-01T12:38:45+01:00 - info: Generating proof-of-work with 4 leading zeros followed by [0-9A]... (CPU usage set to 90%) for block#10112 8marFc2017-03-01T12:38:45+01:00 - info: Stop proof-of-work worker #12017-03-01T12:38:45+01:00 - info: Stop proof-of-work worker #22017-03-01T12:38:45+01:00 - info: Stop proof-of-work worker #32017-03-01T12:38:45+01:00 - info: Stop proof-of-work worker #42017-03-01T12:38:46+01:00 - info: Changing conf to: {"prefix":10} on engine#12017-03-01T12:38:46+01:00 - info: Changing conf to: {"prefix":10} on engine#22017-03-01T12:38:46+01:00 - info: Changing conf to: {"prefix":10} on engine#32017-03-01T12:38:46+01:00 - info: Changing conf to: {"prefix":10} on engine#42017-03-01T12:38:50+01:00 - warn: Pulling not finished after 10000 ms, restart PoW2017-03-01T12:39:04+01:00 - info: Matched 4 zeros 0000C3DEBB3D62413CBD508E66EF21EA0705062D3304A65EE25F94C390050DBF with Nonce = 10300000000775 for block#10112 by 8marFc2017-03-01T12:39:54+01:00 - info: Matched 3 zeros 0009F2A26E73FF6E3A4658E9B158ACA4037B73721206CEA745944811FEE5E8D6 with Nonce = 10400000002829 for block#10112 by 8marFc2017-03-01T12:39:54+01:00 - info: Matched 3 zeros 00067C991C122E53EBE3CE5A3F298304EB541D3E21FF7CA7D7324C1661BD7556 with Nonce = 10300000002810 for block#10112 by 8marFc2017-03-01T12:39:56+01:00 - info: Pulling blocks from the network...2017-03-01T12:39:57+01:00 - info: Will pull blocks from the network in 1 min 20 sec2017-03-01T12:40:06+01:00 - warn: Pulling not finished after 10000 ms, restart PoW2017-03-01T12:41:15+01:00 - info: Matched 3 zeros 000EA3A12526788BF188B0FA118DAFF18CDC005C244B8A8FEF3ED2CBC51C39E7 with Nonce = 10200000006059 for block#10112 by 8marFc2017-03-01T12:41:16+01:00 - info: Pulling blocks from the network...2017-03-01T12:41:16+01:00 - trace: Try with duniter.jadden.info:443 2dVpDy2017-03-01T12:41:16+01:00 - trace: Try with gtest.monnaielibreoccitanie.org:80 CpFjJM2017-03-01T12:41:16+01:00 - trace: Try with 82.239.120.237:30398 CSjgcG2017-03-01T12:41:16+01:00 - trace: Try with duniter.grohub.org:8999 bDq9H42017-03-01T12:41:17+01:00 - info: Will pull blocks from the network in 1 min 21 sec2017-03-01T12:41:26+01:00 - warn: Pulling not finished after 10000 ms, restart PoW2017-03-01T12:41:34+01:00 - info: Matched 3 zeros 000EA98339AEECDB34ED33E2FAC4D939CD0B48B70593690C8AE4D0D383428936 with Nonce = 10400000006919 for block#10112 by 8marFc2017-03-01T12:41:36+01:00 - info: Matched 4 zeros 00002116BA9E6D1D18A3AA91DD0C72D208A55BF1598E9EEF338C8E0D06223ECC with Nonce = 10400000007010 for block#10112 by 8marFc2017-03-01T12:41:36+01:00 - info: ENGINE #4 HAS FOUND A PROOF2017-03-01T12:41:36+01:00 - info: Stop proof-of-work worker #12017-03-01T12:41:36+01:00 - info: Stop proof-of-work worker #22017-03-01T12:41:36+01:00 - info: Stop proof-of-work worker #32017-03-01T12:41:36+01:00 - info: Stop proof-of-work worker #42017-03-01T12:41:36+01:00 - info: Done: #10112, 00002116BA9E6D1D18A3AA91DD0C72D208A55BF1598E9EEF338C8E0D06223ECC in 171.84s (7009 tests, ~40.79 tests/s)2017-03-01T12:41:36+01:00 - info: FOUND proof-of-work with 4 leading zeros followed by [0-9A]!2017-03-01T12:41:38+01:00 - info: Block #10112 added to the blockchain in 1770 ms2017-03-01T12:41:38+01:00 - trace: PoW loops = 192017-03-01T12:41:38+01:00 - warn: Too high difficulty: waiting for other members to write next block2017-03-01T12:41:38+01:00 - info: POST Block block#10112