mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 03:19:23 +00:00
Force debug checks
This commit is contained in:
parent
6eb83dc891
commit
896eac6d8c
3 changed files with 5 additions and 3 deletions
|
@ -92,7 +92,8 @@
|
|||
#define __has_feature(x) 0
|
||||
#endif
|
||||
|
||||
#if defined(_DEBUG) || defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer) || defined(__SANITIZE_THREAD__) || __has_feature(thread_sanitizer)
|
||||
// TODO set it to 0 before release
|
||||
#if 1//defined(_DEBUG) || defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer) || defined(__SANITIZE_THREAD__) || __has_feature(thread_sanitizer)
|
||||
#define P2POOL_DEBUGGING 1
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1968,7 +1968,7 @@ bool P2PServer::P2PClient::check_handshake_solution(const hash& solution, const
|
|||
|
||||
bool P2PServer::P2PClient::on_handshake_challenge(const uint8_t* buf)
|
||||
{
|
||||
P2PServer* server = static_cast<P2PServer*>(m_owner);
|
||||
const P2PServer* server = static_cast<P2PServer*>(m_owner);
|
||||
server->check_event_loop_thread(__func__);
|
||||
|
||||
uint8_t challenge[CHALLENGE_SIZE];
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
#ifdef _DEBUG
|
||||
#define POOL_BLOCK_DEBUG 1
|
||||
#else
|
||||
#define POOL_BLOCK_DEBUG 0
|
||||
// TODO set it to 0 before release
|
||||
#define POOL_BLOCK_DEBUG 1
|
||||
#endif
|
||||
|
||||
namespace p2pool {
|
||||
|
|
Loading…
Reference in a new issue