upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/selftest.cpp
diff options
context:
space:
mode:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-07 11:40:46 -0300
committerBitflash <admin@bitflash.network>2026-08-07 15:05:18 -0300
commit8c2e375600c0eb9bedb8f85ee4fa860825f23521 (patch)
tree5701227e984e768ae9ed003f3447bff2dae92ee4 /src/selftest.cpp
parent0b01d6cfce8be68150f5e06c11e13e0443372c4d (diff)
test: cover pool Stratum share accounting
Diffstat (limited to 'src/selftest.cpp')
-rw-r--r--src/selftest.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/selftest.cpp b/src/selftest.cpp
index ff0289b..fadc959 100644
--- a/src/selftest.cpp
+++ b/src/selftest.cpp
@@ -10,6 +10,8 @@
10#include "selftest.h" 10#include "selftest.h"
11#include "walletcmd.h" 11#include "walletcmd.h"
12 12
13extern int RunPoolStratumSelfTest();
14
13// Test results go to the terminal, not to debug.log. 15// Test results go to the terminal, not to debug.log.
14// 16//
15// printf in this tree is OutputDebugStringF, which writes into the data 17// printf in this tree is OutputDebugStringF, which writes into the data
@@ -1234,8 +1236,10 @@ int RunSelfTest(const std::string& name)
1234 return RunNetMessageSelfTest(); 1236 return RunNetMessageSelfTest();
1235 if (name == "consensus-limits") 1237 if (name == "consensus-limits")
1236 return RunConsensusLimitsSelfTest(); 1238 return RunConsensusLimitsSelfTest();
1239 if (name == "pool-stratum")
1240 return RunPoolStratumSelfTest();
1237 1241
1238 printf("Unknown self-test '%s'\n", name.c_str()); 1242 printf("Unknown self-test '%s'\n", name.c_str());
1239 printf("Known self-tests: wallet-keypool, wallet-hd, wallet-format, wallet-crypto, wallet-encrypt, net-message, consensus-limits\n"); 1243 printf("Known self-tests: wallet-keypool, wallet-hd, wallet-format, wallet-crypto, wallet-encrypt, net-message, consensus-limits, pool-stratum\n");
1240 return 1; 1244 return 1;
1241} 1245}