From 1f12b4f30d0a055ca31a3ed7bbf360dc66819f47 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 18 Sep 2017 13:39:34 -0400 Subject: [PATCH] rename Bitcoin to Gostcoin --- src/server/poolserver/CMakeLists.txt | 2 +- .../poolserver/NetworkMgr/NetworkMgr.cpp | 22 +++++++------- src/server/poolserver/NetworkMgr/NetworkMgr.h | 14 ++++----- src/server/poolserver/Server/Server.cpp | 2 +- src/server/poolserver/Stratum/Client.cpp | 8 ++--- src/server/poolserver/Stratum/Job.h | 4 +-- src/server/poolserver/Stratum/Server.cpp | 2 +- src/server/poolserver/Stratum/Server.h | 12 ++++---- src/server/shared/CMakeLists.txt | 6 ++-- .../shared/{Bitcoin => Gostcoin}/Block.cpp | 2 +- .../shared/{Bitcoin => Gostcoin}/Block.h | 6 ++-- .../Bitcoin.h => Gostcoin/Gostcoin.h} | 10 +++---- .../shared/{Bitcoin => Gostcoin}/Script.h | 6 ++-- .../{Bitcoin => Gostcoin}/Serialization.cpp | 30 +++++++++---------- .../{Bitcoin => Gostcoin}/Transaction.cpp | 2 +- .../{Bitcoin => Gostcoin}/Transaction.h | 6 ++-- .../shared/{Bitcoin => Gostcoin}/VarInt.h | 6 ++-- 17 files changed, 70 insertions(+), 70 deletions(-) rename src/server/shared/{Bitcoin => Gostcoin}/Block.cpp (98%) rename src/server/shared/{Bitcoin => Gostcoin}/Block.h (92%) rename src/server/shared/{Bitcoin/Bitcoin.h => Gostcoin/Gostcoin.h} (89%) rename src/server/shared/{Bitcoin => Gostcoin}/Script.h (96%) rename src/server/shared/{Bitcoin => Gostcoin}/Serialization.cpp (75%) rename src/server/shared/{Bitcoin => Gostcoin}/Transaction.cpp (90%) rename src/server/shared/{Bitcoin => Gostcoin}/Transaction.h (94%) rename src/server/shared/{Bitcoin => Gostcoin}/VarInt.h (87%) diff --git a/src/server/poolserver/CMakeLists.txt b/src/server/poolserver/CMakeLists.txt index 9a56948..f2123cb 100644 --- a/src/server/poolserver/CMakeLists.txt +++ b/src/server/poolserver/CMakeLists.txt @@ -28,7 +28,7 @@ include_directories( ${CMAKE_SOURCE_DIR}/src/server/shared/Logging ${CMAKE_SOURCE_DIR}/src/server/shared/JSON ${CMAKE_SOURCE_DIR}/src/server/shared/JSONRPC - ${CMAKE_SOURCE_DIR}/src/server/shared/Bitcoin + ${CMAKE_SOURCE_DIR}/src/server/shared/Gostcoin ${Boost_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${GMP_INCLUDE_DIR} diff --git a/src/server/poolserver/NetworkMgr/NetworkMgr.cpp b/src/server/poolserver/NetworkMgr/NetworkMgr.cpp index ff54a0c..cb4a3e8 100644 --- a/src/server/poolserver/NetworkMgr/NetworkMgr.cpp +++ b/src/server/poolserver/NetworkMgr/NetworkMgr.cpp @@ -15,20 +15,20 @@ NetworkMgr::~NetworkMgr() delete _cons[i]; } -// Bitcoin daemon connection +// Gostcoin daemon connection void NetworkMgr::Connect(JSONRPCConnectionInfo coninfo) { - JSONRPC* bitcoinrpc = new JSONRPC(); - bitcoinrpc->Connect(coninfo); + JSONRPC* gostcoinrpc = new JSONRPC(); + gostcoinrpc->Connect(coninfo); - JSON response = bitcoinrpc->Query("getinfo"); + JSON response = gostcoinrpc->Query("getinfo"); if (response["error"].GetType() != JSON_NULL) - throw Exception(Util::FS("Failed to get response from bitcoin rpc: %s", response["error"].GetString().c_str())); + throw Exception(Util::FS("Failed to get response from gostcoin rpc: %s", response["error"].GetString().c_str())); - sLog.Info(LOG_SERVER, "Connected to Bitcoin RPC at %s:%s", coninfo.Host.c_str(), coninfo.Port.c_str()); + sLog.Info(LOG_SERVER, "Connected to Gostcoin RPC at %s:%s", coninfo.Host.c_str(), coninfo.Port.c_str()); - _cons.push_back(bitcoinrpc); + _cons.push_back(gostcoinrpc); // Fetch block height on first connection if (_cons.size() == 1) @@ -50,7 +50,7 @@ void NetworkMgr::UpdateBlockTemplate() if (response["height"].GetInt() < _blockHeight) continue; - Bitcoin::BlockPtr block = Bitcoin::BlockPtr(new Bitcoin::Block()); + Gostcoin::BlockPtr block = Gostcoin::BlockPtr(new Gostcoin::Block()); block->version = response["version"].GetInt(); block->prevBlockHash = Util::Reverse(Util::ASCIIToBin(response["previousblockhash"].GetString())); @@ -61,13 +61,13 @@ void NetworkMgr::UpdateBlockTemplate() // Add coinbase tx BinaryData pubkey = Util::ASCIIToBin(sConfig.Get("MiningAddress")); - block->tx.push_back(Bitcoin::CreateCoinbaseTX(_blockHeight, pubkey, response["coinbasevalue"].GetInt())); + block->tx.push_back(Gostcoin::CreateCoinbaseTX(_blockHeight, pubkey, response["coinbasevalue"].GetInt())); // Add other transactions JSON trans = response["transactions"]; for (uint64 tidx = 0; tidx < trans.Size(); ++tidx) { ByteBuffer txbuf(Util::ASCIIToBin(trans[tidx]["data"].GetString())); - Bitcoin::Transaction tx; + Gostcoin::Transaction tx; txbuf >> tx; block->tx.push_back(tx); } @@ -89,7 +89,7 @@ void NetworkMgr::UpdateBlockTemplate() } // Submit new block -bool NetworkMgr::SubmitBlock(Bitcoin::Block block) +bool NetworkMgr::SubmitBlock(Gostcoin::Block block) { // Serialize block ByteBuffer blockbuf; diff --git a/src/server/poolserver/NetworkMgr/NetworkMgr.h b/src/server/poolserver/NetworkMgr/NetworkMgr.h index dbbf89d..99e4edf 100644 --- a/src/server/poolserver/NetworkMgr/NetworkMgr.h +++ b/src/server/poolserver/NetworkMgr/NetworkMgr.h @@ -1,10 +1,10 @@ #ifndef NETWORKMGR_H_ #define NETWORKMGR_H_ -// Provides high level interaction with bitcoin daemon +// Provides high level interaction with gostcoin daemon #include "JSONRPC.h" -#include "Bitcoin.h" +#include "Gostcoin.h" #include "Log.h" #include @@ -14,7 +14,7 @@ using namespace boost; -typedef boost::function FBlockNotify; +typedef boost::function FBlockNotify; class NetworkMgr { @@ -36,14 +36,14 @@ public: NetworkMgr(asio::io_service& io_service); ~NetworkMgr(); - // Bitcoin daemon connection + // Gostcoin daemon connection void Connect(JSONRPCConnectionInfo coninfo); // Get new block template void UpdateBlockTemplate(); // Submit new block - bool SubmitBlock(Bitcoin::Block block); + bool SubmitBlock(Gostcoin::Block block); // Checking for blocks void BlockCheck(); @@ -70,11 +70,11 @@ private: boost::mutex _mtxBlockCheck; uint32 _blockHeight; - // Connections to bitcoin rpc + // Connections to gostcoin rpc std::vector _cons; // Current block template - Bitcoin::BlockPtr _curBlockTmpl; + Gostcoin::BlockPtr _curBlockTmpl; boost::mutex _mtxBlockTmpl; // ASIO diff --git a/src/server/poolserver/Server/Server.cpp b/src/server/poolserver/Server/Server.cpp index 2d82808..f018fd6 100644 --- a/src/server/poolserver/Server/Server.cpp +++ b/src/server/poolserver/Server/Server.cpp @@ -5,7 +5,7 @@ #include "Stratum/Server.h" #include "ServerDatabaseEnv.h" #include "Crypto.h" -#include "Bitcoin.h" +#include "Gostcoin.h" #include "DataMgr.h" #include "NetworkMgr.h" #include "Exception.h" diff --git a/src/server/poolserver/Stratum/Client.cpp b/src/server/poolserver/Stratum/Client.cpp index 3213861..7d6e129 100644 --- a/src/server/poolserver/Stratum/Client.cpp +++ b/src/server/poolserver/Stratum/Client.cpp @@ -199,14 +199,14 @@ namespace Stratum } // Copy block we are working on - Bitcoin::Block block = *job->block; + Gostcoin::Block block = *job->block; // Start assembling the block timebuf >> block.time; noncebuf >> block.nonce; // Assemble coinbase - Bitcoin::Transaction coinbasetx; + Gostcoin::Transaction coinbasetx; ByteBuffer coinbasebuf; coinbasebuf << job->coinbase1 << _extranonce << extranonce2 << job->coinbase2; coinbasebuf >> coinbasetx; @@ -335,8 +335,8 @@ namespace Stratum Job* job = new Job(); job->block = _server->GetWork(); job->diff = _diff; - job->jobTarget = Bitcoin::DiffToTarget(job->diff); - job->blockTarget = Bitcoin::TargetFromBits(job->block->bits); + job->jobTarget = Gostcoin::DiffToTarget(job->diff); + job->blockTarget = Gostcoin::TargetFromBits(job->block->bits); // Serialize transaction ByteBuffer coinbasebuf; diff --git a/src/server/poolserver/Stratum/Job.h b/src/server/poolserver/Stratum/Job.h index 4653d20..feb7ae7 100644 --- a/src/server/poolserver/Stratum/Job.h +++ b/src/server/poolserver/Stratum/Job.h @@ -1,7 +1,7 @@ #ifndef STRATUM_JOB_H_ #define STRATUM_JOB_H_ -#include "Bitcoin.h" +#include "Gostcoin.h" #include "Crypto.h" #include "Util.h" #include "BigNum.h" @@ -14,7 +14,7 @@ namespace Stratum { public: uint64 diff; - Bitcoin::BlockPtr block; + Gostcoin::BlockPtr block; BinaryData coinbase1; BinaryData coinbase2; std::set shares; diff --git a/src/server/poolserver/Stratum/Server.cpp b/src/server/poolserver/Stratum/Server.cpp index a8cea01..e458936 100644 --- a/src/server/poolserver/Stratum/Server.cpp +++ b/src/server/poolserver/Stratum/Server.cpp @@ -30,7 +30,7 @@ namespace Stratum _io_service.post(boost::bind(&Client::SendJob, (*it), resetWork)); } - bool Server::SubmitBlock(Bitcoin::Block block) + bool Server::SubmitBlock(Gostcoin::Block block) { return NetworkMgr::Instance()->SubmitBlock(block); } diff --git a/src/server/poolserver/Stratum/Server.h b/src/server/poolserver/Stratum/Server.h index a6e9085..2199374 100644 --- a/src/server/poolserver/Stratum/Server.h +++ b/src/server/poolserver/Stratum/Server.h @@ -7,7 +7,7 @@ #include "Log.h" #include "JSON.h" #include "JSONRPC.h" -#include "Bitcoin.h" +#include "Gostcoin.h" #include "Util.h" #include "ByteBuffer.h" #include "NetworkMgr.h" @@ -76,14 +76,14 @@ namespace Stratum } // Returns current work - Bitcoin::BlockPtr GetWork() + Gostcoin::BlockPtr GetWork() { boost::lock_guard guard(_mtxCurrentWork); return _currentWork; } // Block template update event - void BlockNotify(Bitcoin::BlockPtr block, bool newBlock) + void BlockNotify(Gostcoin::BlockPtr block, bool newBlock) { sLog.Debug(LOG_STRATUM, "Received block template update"); _mtxCurrentWork.lock(); @@ -95,8 +95,8 @@ namespace Stratum // Resets work for all clients void SendBlockTmpl(bool resetWork); - // Submits block to bitcoind - bool SubmitBlock(Bitcoin::Block block); + // Submits block to gostcoind + bool SubmitBlock(Gostcoin::Block block); // Disconnects client void Disconnect(ClientPtr client) @@ -173,7 +173,7 @@ namespace Stratum boost::mutex _mtxBans; // Work - Bitcoin::BlockPtr _currentWork; + Gostcoin::BlockPtr _currentWork; boost::mutex _mtxCurrentWork; uint32 _extranonce; boost::mutex _mtxExtranonce; diff --git a/src/server/shared/CMakeLists.txt b/src/server/shared/CMakeLists.txt index 55df71b..31b45ad 100644 --- a/src/server/shared/CMakeLists.txt +++ b/src/server/shared/CMakeLists.txt @@ -4,7 +4,7 @@ file(GLOB_RECURSE sources_MySQL MySQL/*.cpp MySQL/*.h) file(GLOB_RECURSE sources_Logging Logging/*.cpp Logging/*.h) file(GLOB_RECURSE sources_JSON JSON/*.cpp JSON/*.h) file(GLOB_RECURSE sources_JSONRPC JSONRPC/*.cpp JSONRPC/*.h) -file(GLOB_RECURSE sources_Bitcoin Bitcoin/*.cpp Bitcoin/*.h) +file(GLOB_RECURSE sources_Gostcoin Gostcoin/*.cpp Gostcoin/*.h) file(GLOB sources_localdir *.cpp *.h) @@ -14,7 +14,7 @@ set(sources_Shared ${sources_Logging} ${sources_JSON} ${sources_JSONRPC} - ${sources_Bitcoin} + ${sources_Gostcoin} ${sources_localdir} ) @@ -25,7 +25,7 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/Logging ${CMAKE_CURRENT_SOURCE_DIR}/JSON ${CMAKE_CURRENT_SOURCE_DIR}/JSONRPC - ${CMAKE_CURRENT_SOURCE_DIR}/Bitcoin + ${CMAKE_CURRENT_SOURCE_DIR}/Gostcoin ${Boost_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${GMP_INCLUDE_DIR} diff --git a/src/server/shared/Bitcoin/Block.cpp b/src/server/shared/Gostcoin/Block.cpp similarity index 98% rename from src/server/shared/Bitcoin/Block.cpp rename to src/server/shared/Gostcoin/Block.cpp index 0ae2e4e..24c0bb9 100644 --- a/src/server/shared/Bitcoin/Block.cpp +++ b/src/server/shared/Gostcoin/Block.cpp @@ -1,6 +1,6 @@ #include "Block.h" -namespace Bitcoin +namespace Gostcoin { void Block::BuildMerkleTree() { diff --git a/src/server/shared/Bitcoin/Block.h b/src/server/shared/Gostcoin/Block.h similarity index 92% rename from src/server/shared/Bitcoin/Block.h rename to src/server/shared/Gostcoin/Block.h index 16235f2..3ba9f9d 100644 --- a/src/server/shared/Bitcoin/Block.h +++ b/src/server/shared/Gostcoin/Block.h @@ -1,5 +1,5 @@ -#ifndef BITCOIN_BLOCK_H_ -#define BITCOIN_BLOCK_H_ +#ifndef GOSTCOIN_BLOCK_H_ +#define GOSTCOIN_BLOCK_H_ #include "Common.h" #include "Transaction.h" @@ -7,7 +7,7 @@ #include #include -namespace Bitcoin +namespace Gostcoin { class BlockHeader { diff --git a/src/server/shared/Bitcoin/Bitcoin.h b/src/server/shared/Gostcoin/Gostcoin.h similarity index 89% rename from src/server/shared/Bitcoin/Bitcoin.h rename to src/server/shared/Gostcoin/Gostcoin.h index af2e344..7b187e2 100644 --- a/src/server/shared/Bitcoin/Bitcoin.h +++ b/src/server/shared/Gostcoin/Gostcoin.h @@ -1,5 +1,5 @@ -#ifndef BITCOIN_H_ -#define BITCOIN_H_ +#ifndef GOSTCOIN_H_ +#define GOSTCOIN_H_ #include "Block.h" #include "Transaction.h" @@ -8,7 +8,7 @@ #include "BigNum.h" #include -namespace Bitcoin +namespace Gostcoin { inline BigInt TargetToDiff(BigInt val) { @@ -40,7 +40,7 @@ namespace Bitcoin ByteBuffer scriptsig; scriptsig << blockHeight << extranonce_ph; - Bitcoin::OutPoint outpoint; + Gostcoin::OutPoint outpoint; outpoint.hash.resize(32, 0); outpoint.n = 0xFFFFFFFF; @@ -51,7 +51,7 @@ namespace Bitcoin TxOut txout; txout.value = value; - txout.scriptPubKey = Bitcoin::Script(pubkey) + Bitcoin::OP_CHECKSIG; + txout.scriptPubKey = Gostcoin::Script(pubkey) + Gostcoin::OP_CHECKSIG; Transaction tx; tx.version = 1; diff --git a/src/server/shared/Bitcoin/Script.h b/src/server/shared/Gostcoin/Script.h similarity index 96% rename from src/server/shared/Bitcoin/Script.h rename to src/server/shared/Gostcoin/Script.h index df58ad2..5587522 100644 --- a/src/server/shared/Bitcoin/Script.h +++ b/src/server/shared/Gostcoin/Script.h @@ -1,5 +1,5 @@ -#ifndef BITCOIN_SCRIPT_H_ -#define BITCOIN_SCRIPT_H_ +#ifndef GOSTCOIN_SCRIPT_H_ +#define GOSTCOIN_SCRIPT_H_ #include "Common.h" #include "ByteBuffer.h" @@ -7,7 +7,7 @@ #include #include -namespace Bitcoin +namespace Gostcoin { enum ScriptOPCode { diff --git a/src/server/shared/Bitcoin/Serialization.cpp b/src/server/shared/Gostcoin/Serialization.cpp similarity index 75% rename from src/server/shared/Bitcoin/Serialization.cpp rename to src/server/shared/Gostcoin/Serialization.cpp index a54756f..ec29a79 100644 --- a/src/server/shared/Bitcoin/Serialization.cpp +++ b/src/server/shared/Gostcoin/Serialization.cpp @@ -3,10 +3,10 @@ #include "Transaction.h" #include "Block.h" -using namespace Bitcoin; +using namespace Gostcoin; // VarInt -ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, VarInt& b) +ByteBuffer& Gostcoin::operator<<(ByteBuffer& a, VarInt& b) { if (b.value < 0xfd) { a.Append(b.value); @@ -22,7 +22,7 @@ ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, VarInt& b) } return a; } -ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, VarInt& b) +ByteBuffer& Gostcoin::operator>>(ByteBuffer& a, VarInt& b) { uint8 size = a.Read(); @@ -37,14 +37,14 @@ ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, VarInt& b) } // Script -ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, Script& b) +ByteBuffer& Gostcoin::operator<<(ByteBuffer& a, Script& b) { VarInt size(b.script.size()); a << size; a << b.script; return a; } -ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, Script& b) +ByteBuffer& Gostcoin::operator>>(ByteBuffer& a, Script& b) { VarInt size; a >> size; @@ -53,13 +53,13 @@ ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, Script& b) } // OutPoint -ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, OutPoint& b) +ByteBuffer& Gostcoin::operator<<(ByteBuffer& a, OutPoint& b) { a << b.hash; a << b.n; return a; } -ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, OutPoint& b) +ByteBuffer& Gostcoin::operator>>(ByteBuffer& a, OutPoint& b) { b.hash = a.ReadBinary(32); a >> b.n; @@ -67,14 +67,14 @@ ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, OutPoint& b) } // TxIn -ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, TxIn& b) +ByteBuffer& Gostcoin::operator<<(ByteBuffer& a, TxIn& b) { a << b.prevout; a << b.script; a << b.n; return a; } -ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, TxIn& b) +ByteBuffer& Gostcoin::operator>>(ByteBuffer& a, TxIn& b) { a >> b.prevout; a >> b.script; @@ -83,13 +83,13 @@ ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, TxIn& b) } // TxOut -ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, TxOut& b) +ByteBuffer& Gostcoin::operator<<(ByteBuffer& a, TxOut& b) { a << b.value; a << b.scriptPubKey; return a; } -ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, TxOut& b) +ByteBuffer& Gostcoin::operator>>(ByteBuffer& a, TxOut& b) { a >> b.value; a >> b.scriptPubKey; @@ -97,7 +97,7 @@ ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, TxOut& b) } // Transaction -ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, Transaction& b) +ByteBuffer& Gostcoin::operator<<(ByteBuffer& a, Transaction& b) { a << b.version; @@ -117,7 +117,7 @@ ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, Transaction& b) return a; } -ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, Transaction& b) +ByteBuffer& Gostcoin::operator>>(ByteBuffer& a, Transaction& b) { a >> b.version; @@ -143,7 +143,7 @@ ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, Transaction& b) } // Block -ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, Block& b) +ByteBuffer& Gostcoin::operator<<(ByteBuffer& a, Block& b) { a << b.version; a << b.prevBlockHash; @@ -160,7 +160,7 @@ ByteBuffer& Bitcoin::operator<<(ByteBuffer& a, Block& b) return a; } -ByteBuffer& Bitcoin::operator>>(ByteBuffer& a, Block& b) +ByteBuffer& Gostcoin::operator>>(ByteBuffer& a, Block& b) { a >> b.version; b.prevBlockHash = a.ReadBinary(32); diff --git a/src/server/shared/Bitcoin/Transaction.cpp b/src/server/shared/Gostcoin/Transaction.cpp similarity index 90% rename from src/server/shared/Bitcoin/Transaction.cpp rename to src/server/shared/Gostcoin/Transaction.cpp index 2a85d0e..5f280b7 100644 --- a/src/server/shared/Bitcoin/Transaction.cpp +++ b/src/server/shared/Gostcoin/Transaction.cpp @@ -1,7 +1,7 @@ #include "Transaction.h" #include "Util.h" -namespace Bitcoin +namespace Gostcoin { BinaryData Transaction::GetHash() { diff --git a/src/server/shared/Bitcoin/Transaction.h b/src/server/shared/Gostcoin/Transaction.h similarity index 94% rename from src/server/shared/Bitcoin/Transaction.h rename to src/server/shared/Gostcoin/Transaction.h index 9b6c584..2d3318c 100644 --- a/src/server/shared/Bitcoin/Transaction.h +++ b/src/server/shared/Gostcoin/Transaction.h @@ -1,5 +1,5 @@ -#ifndef BITCOIN_TRANSACTION_H_ -#define BITCOIN_TRANSACTION_H_ +#ifndef GOSTCOIN_TRANSACTION_H_ +#define GOSTCOIN_TRANSACTION_H_ #include "Common.h" #include "ByteBuffer.h" @@ -7,7 +7,7 @@ #include "Script.h" #include "Crypto.h" -namespace Bitcoin +namespace Gostcoin { class OutPoint { diff --git a/src/server/shared/Bitcoin/VarInt.h b/src/server/shared/Gostcoin/VarInt.h similarity index 87% rename from src/server/shared/Bitcoin/VarInt.h rename to src/server/shared/Gostcoin/VarInt.h index 5272247..e212863 100644 --- a/src/server/shared/Bitcoin/VarInt.h +++ b/src/server/shared/Gostcoin/VarInt.h @@ -1,10 +1,10 @@ -#ifndef BITCOIN_VARINT_H_ -#define BITCOIN_VARINT_H_ +#ifndef GOSTCOIN_VARINT_H_ +#define GOSTCOIN_VARINT_H_ #include "Common.h" #include "ByteBuffer.h" -namespace Bitcoin +namespace Gostcoin { class VarInt {