mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-25 05:20:01 +01:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user