test: Use mockable time in GuessVerificationProgress

Also add a test.
This commit is contained in:
MarcoFalke
2025-05-16 13:06:03 +02:00
parent af65fd1a33
commit faf6304bdf
3 changed files with 13 additions and 4 deletions

View File

@@ -613,9 +613,9 @@ public:
};
chainTxData = ChainTxData{
0,
0,
0
.nTime = 0,
.tx_count = 0,
.dTxRate = 0.001, // Set a non-zero rate to make it testable
};
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);