diff options
| author | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-03 21:49:35 +0000 |
|---|---|---|
| committer | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-03 21:49:35 +0000 |
| commit | 3c18a66ef601d90f08ea622021cb02bafab1601b (patch) | |
| tree | ccb8ffec434c2c1eb9e0357c5692ee8aca42e159 /src/main.cpp | |
| parent | 4c6572f01d995e632338d7fb921962bb8f600eed (diff) | |
| parent | 74f1d8598a6f603fdfaf6c0487375c40166b76ec (diff) | |
merge: !2 fix/log-rotation into deploy/all-2026-08-24
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index be4ab5e..981509c 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
| @@ -1713,7 +1713,7 @@ void CWalletTx::RelayWalletTransaction(CTxDB& txdb) | |||
| 1713 | uint256 hash = GetHash(); | 1713 | uint256 hash = GetHash(); |
| 1714 | if (!txdb.ContainsTx(hash)) | 1714 | if (!txdb.ContainsTx(hash)) |
| 1715 | { | 1715 | { |
| 1716 | if (LogAcceptsCategory("net")) printf("Relaying wtx %s\n", hash.ToString().substr(0,6).c_str()); | 1716 | if (LogAcceptsCategory("relay")) printf("Relaying wtx %s\n", hash.ToString().substr(0,6).c_str()); |
| 1717 | RelayMessage(CInv(MSG_TX, hash), (CTransaction)*this); | 1717 | RelayMessage(CInv(MSG_TX, hash), (CTransaction)*this); |
| 1718 | } | 1718 | } |
| 1719 | } | 1719 | } |
| @@ -3264,7 +3264,7 @@ bool ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) | |||
| 3264 | vRecv >> *pblock; | 3264 | vRecv >> *pblock; |
| 3265 | 3265 | ||
| 3266 | //// debug print | 3266 | //// debug print |
| 3267 | if (LogAcceptsCategory("net")) { printf("received block:\n"); pblock->print(); } | 3267 | if (LogAcceptsCategory("relay")) { printf("received block:\n"); pblock->print(); } |
| 3268 | 3268 | ||
| 3269 | CInv inv(MSG_BLOCK, pblock->GetHash()); | 3269 | CInv inv(MSG_BLOCK, pblock->GetHash()); |
| 3270 | pfrom->AddInventoryKnown(inv); | 3270 | pfrom->AddInventoryKnown(inv); |
| @@ -4643,7 +4643,7 @@ bool BitcoinMiner(int nThreadId) | |||
| 4643 | //// debug print | 4643 | //// debug print |
| 4644 | if (LogAcceptsCategory("net")) printf("BitcoinMiner:\n"); | 4644 | if (LogAcceptsCategory("net")) printf("BitcoinMiner:\n"); |
| 4645 | if (LogAcceptsCategory("net")) printf("RandomX proof-of-work found \n powhash: %s \ntarget: %s\n", hash.GetHex().c_str(), hashTarget.GetHex().c_str()); | 4645 | if (LogAcceptsCategory("net")) printf("RandomX proof-of-work found \n powhash: %s \ntarget: %s\n", hash.GetHex().c_str(), hashTarget.GetHex().c_str()); |
| 4646 | if (LogAcceptsCategory("net")) pblock->print(); | 4646 | if (LogAcceptsCategory("relay")) pblock->print(); |
| 4647 | 4647 | ||
| 4648 | SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_NORMAL); | 4648 | SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_NORMAL); |
| 4649 | CRITICAL_BLOCK(cs_main) | 4649 | CRITICAL_BLOCK(cs_main) |