miner: have waitNext return after 20 min on testnet

On testnet we need to create a min diff template after 20 min.
This commit is contained in:
Sjors Provoost
2025-01-31 17:19:28 +01:00
parent d4020f502a
commit cadbd4137d
5 changed files with 94 additions and 0 deletions

View File

@@ -64,6 +64,9 @@ public:
* for the next block should rise (default infinite).
*
* @returns a new BlockTemplate or nothing if the timeout occurs.
*
* On testnet this will additionally return a template with difficulty 1 if
* the tip is more than 20 minutes old.
*/
virtual std::unique_ptr<BlockTemplate> waitNext(const node::BlockWaitOptions options = {}) = 0;
};