Unable to build chain in regtest "algo-toomany" in RunAllTestInDifferentAppSession #60

Open
opened 2025-03-03 17:14:21 +00:00 by superness · 1 comment
superness commented 2025-03-03 17:14:21 +00:00 (Migrated from github.com)

Start auroracoin-qt.exe with the -regtest argument
Attempt to build block chain to 225000 height to test sha256 mining

  1. generatetoaddress 225000 address 225000 scrypt

Two problems: generatetoaddress only maybe builds some blocks, it does not produce as many as requested because nHeight is always incremented in the loop in 'generateBlocks (mining.cpp)' - it also stops at block height 145 because that is 'algo-toomany'

But we cannot create a non-scrypt block until block height 225000

Some code needs to know about this requirement and not check for algo-toomany when the block height is low enough to only accept scrypt

Start auroracoin-qt.exe with the -regtest argument Attempt to build block chain to 225000 height to test sha256 mining 1) generatetoaddress 225000 address 225000 scrypt Two problems: generatetoaddress only maybe builds some blocks, it does not produce as many as requested because nHeight is always incremented in the loop in 'generateBlocks (mining.cpp)' - it also stops at block height 145 because that is 'algo-toomany' But we cannot create a non-scrypt block until block height 225000 Some code needs to know about this requirement and not check for algo-toomany when the block height is low enough to only accept scrypt
BioMike commented 2025-03-05 18:19:12 +00:00 (Migrated from github.com)

The -regtest flag isn't functional, don't use it. Same goes for the testnet.

The -regtest flag isn't functional, don't use it. Same goes for the testnet.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Core-Wallets/Auroracoin#60
No description provided.