Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "protocol.h" | #include "protocol.h" | ||||
#include "chainparams.h" | #include "chainparams.h" | ||||
#include "config.h" | #include "config.h" | ||||
#include "util.h" | #include "util.h" | ||||
#include "utilstrencodings.h" | #include "utilstrencodings.h" | ||||
#ifndef WIN32 | #ifndef WIN32 | ||||
#include <arpa/inet.h> | #include <arpa/inet.h> | ||||
#endif | #endif | ||||
std::atomic<bool> g_initial_block_download_completed(false); | |||||
namespace NetMsgType { | namespace NetMsgType { | ||||
const char *VERSION = "version"; | const char *VERSION = "version"; | ||||
const char *VERACK = "verack"; | const char *VERACK = "verack"; | ||||
const char *ADDR = "addr"; | const char *ADDR = "addr"; | ||||
const char *INV = "inv"; | const char *INV = "inv"; | ||||
const char *GETDATA = "getdata"; | const char *GETDATA = "getdata"; | ||||
const char *MERKLEBLOCK = "merkleblock"; | const char *MERKLEBLOCK = "merkleblock"; | ||||
const char *GETBLOCKS = "getblocks"; | const char *GETBLOCKS = "getblocks"; | ||||
▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines |