BTCPrivate / BTCP-Rebase

Work in progress. DO NOT USE.
https://btcprivate.org
Other
113 stars 23 forks source link

[mining] generate works on regtest but not testnet #102

Closed ch4ot1c closed 6 years ago

ch4ot1c commented 6 years ago

regtest works fairly well, even with peers.

ch4ot1c commented 6 years ago

The problem is just an out-of-memory error on small machines.

Getting testnet generate working in a general case isn't a priority until a built-in cpu miner is added.

mattpass commented 6 years ago

Was able to absolutely confirm this with richardvt today who bumped up the CPU and it mined 1 block after a few minutes. In a subsequent test of generating 5 blocks it errored out with a timeout, but given enough time it would do it.

It just needs more power and the smaller machines just weren't powerful enough to do a whole block themselves in a reasonable timeframe. Given a lot of time they would of. Therefore generate does work in testnet.

interbiznw commented 6 years ago

It has worked the whole time..just not consistently every single time. I have had it fail on a machine then next try on same machine had it work.

Has to have worked or the test net wouldn't have had a block to start from

dskjkljdas commented 6 years ago

Single block mined AOK, but 5 block generate timed out in CLI but bitcoind was happily sitting there mining in the background even though the CLI reported a timeout indicating it was still mining after the timeout (bitcoind was till live and functioning too)