Skip to content

Commit

Permalink
<fix>(cmake): fix cmake and header when compile error in install.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyonRay committed Nov 20, 2023
1 parent ff35981 commit 776c53c
Show file tree
Hide file tree
Showing 27 changed files with 86 additions and 85 deletions.
1 change: 0 additions & 1 deletion bcos-codec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ find_package(Microsoft.GSL CONFIG REQUIRED)
add_library(${CODEC_TARGET} ${SRC_LIST} ${HEADERS})
target_include_directories(${CODEC_TARGET} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<INSTALL_INTERFACE:include/bcos-codec>
)
target_link_libraries(${CODEC_TARGET} PUBLIC bcos-crypto Microsoft.GSL::GSL)
Expand Down
6 changes: 3 additions & 3 deletions bcos-crypto/bcos-crypto/KeyCompareTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

#pragma once

#include "bcos-crypto/bcos-crypto/interfaces/crypto/CommonType.h"
#include "bcos-utilities/bcos-utilities/FixedBytes.h"
#include "bcos-utilities/bcos-utilities/Ranges.h"
#include "bcos-crypto/interfaces/crypto/CommonType.h"
#include "bcos-utilities/FixedBytes.h"
#include "bcos-utilities/Ranges.h"

namespace bcos::crypto
{
Expand Down
18 changes: 9 additions & 9 deletions bcos-executor/test/unittest/libprecompiled/PreCompiledFixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@
*/

#pragma once
#include "bcos-executor/src/precompiled/common/Common.h"
#include "bcos-executor/src/precompiled/common/Utilities.h"
#include "bcos-framework/bcos-framework/testutils/faker/FakeBlock.h"
#include "bcos-framework/bcos-framework/testutils/faker/FakeBlockHeader.h"
#include "bcos-framework/ledger/LedgerTypeDef.h"
#include "bcos-framework/protocol/Protocol.h"
#include "bcos-framework/protocol/ProtocolTypeDef.h"
#include "bcos-table/src/StateStorageFactory.h"
#include "bcos-tars-protocol/protocol/BlockHeaderImpl.h"
#include "executive/BlockContext.h"
#include "executive/TransactionExecutive.h"
#include "executor/TransactionExecutorFactory.h"
Expand All @@ -40,8 +31,17 @@
#include <bcos-crypto/hash/SM3.h>
#include <bcos-crypto/signature/secp256k1/Secp256k1Crypto.h>
#include <bcos-crypto/signature/sm2.h>
#include <bcos-executor/src/precompiled/common/Common.h>
#include <bcos-executor/src/precompiled/common/Utilities.h>
#include <bcos-framework/executor/NativeExecutionMessage.h>
#include <bcos-framework/ledger/LedgerTypeDef.h>
#include <bcos-framework/protocol/Protocol.h>
#include <bcos-framework/protocol/ProtocolTypeDef.h>
#include <bcos-framework/storage/Table.h>
#include <bcos-framework/testutils/faker/FakeBlock.h>
#include <bcos-framework/testutils/faker/FakeBlockHeader.h>
#include <bcos-table/src/StateStorageFactory.h>
#include <bcos-tars-protocol/protocol/BlockHeaderImpl.h>
#include <bcos-tool/BfsFileFactory.h>
#include <bcos-utilities/testutils/TestPromptFixture.h>
#include <libinitializer/AuthInitializer.h>
Expand Down
1 change: 0 additions & 1 deletion bcos-framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

cmake_minimum_required(VERSION 3.12)

include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-framework)

find_package(Microsoft.GSL CONFIG REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion bcos-framework/bcos-framework/protocol/ProtocolInfoCodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @date 2022-03-22
*/
#pragma once
#include "bcos-framework/bcos-framework/protocol/ProtocolInfo.h"
#include "bcos-framework/protocol/ProtocolInfo.h"
#include <bcos-utilities/Common.h>
#include <memory>
namespace bcos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
* @date: 2021-03-16
*/
#pragma once
#include "bcos-crypto/bcos-crypto/hash/Keccak256.h"
#include "bcos-crypto/bcos-crypto/hash/SM3.h"
#include "bcos-crypto/bcos-crypto/signature/secp256k1/Secp256k1Crypto.h"
#include "bcos-crypto/hash/Keccak256.h"
#include "bcos-crypto/hash/SM3.h"
#include "bcos-crypto/signature/secp256k1/Secp256k1Crypto.h"
#include "bcos-protocol/Common.h"
#include "bcos-tars-protocol/protocol/BlockHeaderFactoryImpl.h"
#include "bcos-utilities/bcos-utilities/Common.h"
#include "bcos-utilities/Common.h"
#include <tbb/parallel_invoke.h>
#include <boost/test/tools/old/interface.hpp>
#include <boost/test/unit_test.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
#include "bcos-tars-protocol/bcos-tars-protocol/impl/TarsHashable.h"

#include "bcos-concepts/Hash.h"
#include "bcos-crypto/bcos-crypto/hash/Keccak256.h"
#include "bcos-crypto/bcos-crypto/hash/SM3.h"
#include "bcos-crypto/bcos-crypto/signature/secp256k1/Secp256k1Crypto.h"
#include "bcos-crypto/hash/Keccak256.h"
#include "bcos-crypto/hash/SM3.h"
#include "bcos-crypto/interfaces/crypto/KeyPairInterface.h"
#include "bcos-crypto/signature/secp256k1/Secp256k1Crypto.h"
#include "bcos-tars-protocol/bcos-tars-protocol/protocol/TransactionFactoryImpl.h"
#include "bcos-tars-protocol/protocol/TransactionImpl.h"
#include "bcos-utilities/bcos-utilities/Common.h"
#include "bcos-utilities/Common.h"
#include <boost/test/unit_test.hpp>

using namespace bcos;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
* @date: 2021-03-16
*/
#pragma once
#include "bcos-crypto/bcos-crypto/hash/Keccak256.h"
#include "bcos-crypto/bcos-crypto/hash/SM3.h"
#include "bcos-crypto/bcos-crypto/signature/secp256k1/Secp256k1Crypto.h"
#include "bcos-crypto/hash/Keccak256.h"
#include "bcos-crypto/hash/SM3.h"
#include "bcos-crypto/signature/secp256k1/Secp256k1Crypto.h"
#include "bcos-protocol/TransactionStatus.h"
#include "bcos-tars-protocol/bcos-tars-protocol/protocol/TransactionReceiptImpl.h"
#include "bcos-tars-protocol/protocol/TransactionReceiptFactoryImpl.h"
#include "bcos-utilities/bcos-utilities/Common.h"
#include "bcos-utilities/Common.h"
#include <boost/test/unit_test.hpp>

using namespace bcos;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
#pragma once

#include <bcos-utilities/bcos-utilities/FixedBytes.h>
#include <bcos-utilities/FixedBytes.h>

#include <memory>
#include <set>
Expand Down
10 changes: 5 additions & 5 deletions bcos-ledger/src/libledger/LedgerImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <bcos-executor/src/Common.h>
#include <bcos-framework/ledger/LedgerTypeDef.h>
#include <bcos-table/src/StateStorageFactory.h>
#include <bcos-tool/bcos-tool/VersionConverter.h>
#include <bcos-tool/VersionConverter.h>
#include <bcos-utilities/DataConvertUtility.h>
#include <bcos-utilities/Ranges.h>
#include <tbb/blocked_range.h>
Expand Down Expand Up @@ -449,10 +449,10 @@ class LedgerImpl : public bcos::concepts::ledger::LedgerBase<LedgerImpl<Hasher,
}

template <class Type>
requires std::same_as<Type, concepts::ledger::TRANSACTIONS> ||
std::same_as<Type, concepts::ledger::RECEIPTS>
task::Task<void> getBlockData(
std::string_view blockNumberKey, bcos::concepts::block::Block auto& block)
requires std::same_as<Type, concepts::ledger::TRANSACTIONS> ||
std::same_as<Type, concepts::ledger::RECEIPTS>
task::Task<void> getBlockData(
std::string_view blockNumberKey, bcos::concepts::block::Block auto& block)
{
LEDGER_LOG(DEBUG) << "getBlockData transactions or receipts: " << blockNumberKey;

Expand Down
2 changes: 1 addition & 1 deletion bcos-pbft/bcos-pbft/pbft/config/PBFTConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "bcos-pbft/pbft/interfaces/PBFTMessageFactory.h"
#include "bcos-pbft/pbft/interfaces/PBFTStorage.h"
#include "bcos-pbft/pbft/utilities/Common.h"
#include "bcos-rpbft/bcos-rpbft/rpbft/config/RPBFTConfigTools.h"
#include "bcos-rpbft/rpbft/config/RPBFTConfigTools.h"
#include <bcos-crypto/interfaces/crypto/CryptoSuite.h>
#include <bcos-framework/front/FrontServiceInterface.h>
#include <bcos-framework/sync/BlockSyncInterface.h>
Expand Down
2 changes: 1 addition & 1 deletion bcos-pbft/bcos-pbft/pbft/engine/PBFTEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#pragma once
#include "PBFTLogSync.h"
#include "bcos-pbft/core/ConsensusEngine.h"
#include "bcos-rpbft/bcos-rpbft/rpbft/config/RPBFTConfigTools.h"
#include "bcos-rpbft/rpbft/config/RPBFTConfigTools.h"
#include <bcos-tool/LedgerConfigFetcher.h>
#include <bcos-utilities/ConcurrentQueue.h>
#include <bcos-utilities/Error.h>
Expand Down
2 changes: 1 addition & 1 deletion bcos-pbft/bcos-pbft/pbft/protocol/PB/PBFTBaseMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#pragma once
#include "bcos-pbft/pbft/interfaces/PBFTBaseMessageInterface.h"
#include "bcos-pbft/pbft/protocol/proto/PBFT.pb.h"
#include "bcos-utilities/bcos-utilities/Common.h"
#include "bcos-utilities/Common.h"
#include <bcos-protocol/Common.h>
namespace bcos
{
Expand Down
1 change: 0 additions & 1 deletion bcos-protocol/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ add_subdirectory(bcos-protocol)
add_library(bcos-protocol INTERFACE)
target_include_directories(bcos-protocol INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<INSTALL_INTERFACE:include/bcos-protocol>
)
target_link_libraries(bcos-protocol INTERFACE ${CODEC_TARGET})
Expand Down
14 changes: 7 additions & 7 deletions bcos-rpc/test/unittests/common/RPCFixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@

#pragma once

#include "bcos-crypto/encrypt/AESCrypto.h"
#include "bcos-crypto/signature/secp256k1/Secp256k1Crypto.h"
#include "bcos-crypto/signature/secp256k1/Secp256k1KeyPair.h"
#include "bcos-crypto/signature/sm2/SM2Crypto.h"
#include "bcos-crypto/signature/sm2/SM2KeyPair.h"
#include "bcos-framework/protocol/GlobalConfig.h"
#include "bcos-rpc/bcos-rpc/RpcFactory.h"
#include <bcos-crypto/encrypt/AESCrypto.h>
#include <bcos-crypto/hash/Keccak256.h>
#include <bcos-crypto/hash/SM3.h>
#include <bcos-crypto/signature/key/KeyFactoryImpl.h>
#include <bcos-crypto/signature/secp256k1/Secp256k1Crypto.h>
#include <bcos-crypto/signature/secp256k1/Secp256k1KeyPair.h>
#include <bcos-crypto/signature/sm2/SM2Crypto.h>
#include <bcos-crypto/signature/sm2/SM2KeyPair.h>
#include <bcos-framework/executor/PrecompiledTypeDef.h>
#include <bcos-framework/protocol/GlobalConfig.h>
#include <bcos-framework/testutils/faker/FakeFrontService.h>
#include <bcos-framework/testutils/faker/FakeLedger.h>
#include <bcos-framework/testutils/faker/FakeScheduler.h>
#include <bcos-framework/testutils/faker/FakeSealer.h>
#include <bcos-framework/testutils/faker/FakeTxPool.h>
#include <bcos-rpc/RpcFactory.h>
#include <bcos-rpc/tarsRPC/RPCServer.h>
#include <bcos-rpc/validator/CallValidator.h>
#include <bcos-utilities/Exceptions.h>
Expand Down
16 changes: 8 additions & 8 deletions bcos-scheduler/test/mock/MockLedger3.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#pragma once

#include "bcos-framework/bcos-framework/ledger/LedgerConfig.h"
#include "bcos-framework/bcos-framework/ledger/LedgerInterface.h"
#include "bcos-framework/bcos-framework/ledger/LedgerTypeDef.h"
#include "bcos-framework/bcos-framework/protocol/Block.h"
#include "bcos-framework/bcos-framework/protocol/Protocol.h"
#include "bcos-framework/bcos-framework/protocol/Transaction.h"
#include "bcos-framework/bcos-framework/protocol/TransactionReceipt.h"
#include "bcos-framework/bcos-framework/storage/StorageInterface.h"
#include "bcos-framework/ledger/Features.h"
#include "bcos-framework/ledger/LedgerConfig.h"
#include "bcos-framework/ledger/LedgerInterface.h"
#include "bcos-framework/ledger/LedgerTypeDef.h"
#include "bcos-framework/protocol/Block.h"
#include "bcos-framework/protocol/Protocol.h"
#include "bcos-framework/protocol/Transaction.h"
#include "bcos-framework/protocol/TransactionReceipt.h"
#include "bcos-framework/storage/StorageInterface.h"
#include "bcos-ledger/src/libledger/utilities/Common.h"
#include <bcos-crypto/interfaces/crypto/CommonType.h>
#include <bcos-utilities/Error.h>
Expand Down
4 changes: 2 additions & 2 deletions bcos-scheduler/test/mock/MockTxPool1.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "bcos-framework/bcos-framework/testutils/faker/FakeBlockHeader.h"
#include "bcos-framework/bcos-framework/testutils/faker/FakeTransaction.h"
#include "bcos-framework/testutils/faker/FakeBlockHeader.h"
#include "bcos-framework/testutils/faker/FakeTransaction.h"
#include "bcos-scheduler/src/Common.h"
#include <bcos-crypto/hash/Keccak256.h>
#include <bcos-crypto/hash/SM3.h>
Expand Down
2 changes: 1 addition & 1 deletion bcos-storage/bcos-storage/RocksDBStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#pragma once

#include <bcos-framework/storage/StorageInterface.h>
#include <bcos-security/bcos-security/DataEncryption.h>
#include <bcos-security/DataEncryption.h>
#include <rocksdb/db.h>
#include <tbb/parallel_for.h>

Expand Down
2 changes: 1 addition & 1 deletion bcos-tool/bcos-tool/TreeTopology.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
#pragma once

#include "bcos-crypto/bcos-crypto/KeyCompareTools.h"
#include "bcos-crypto/KeyCompareTools.h"
#include <bcos-crypto/interfaces/crypto/KeyFactory.h>

#define TREE_LOG(LEVEL) \
Expand Down
2 changes: 1 addition & 1 deletion bcos-txpool/bcos-txpool/txpool/storage/MemoryStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "bcos-task/Task.h"
#include "bcos-txpool/TxPoolConfig.h"
#include "bcos-txpool/txpool/utilities/Common.h"
#include <bcos-txpool/bcos-txpool/txpool/utilities/TransactionBucket.h>
#include <bcos-txpool/txpool/utilities/TransactionBucket.h>
#include <bcos-utilities/BucketMap.h>
#include <bcos-utilities/FixedBytes.h>
#include <bcos-utilities/RateCollector.h>
Expand Down
8 changes: 4 additions & 4 deletions bcos-txpool/bcos-txpool/txpool/utilities/TransactionBucket.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "bcos-crypto/bcos-crypto/interfaces/crypto/CommonType.h"
#include "bcos-framework/bcos-framework/protocol/Transaction.h"
#include "bcos-utilities/bcos-utilities/BucketMap.h"
#include "bcos-utilities/bcos-utilities/FixedBytes.h"
#include "bcos-crypto/interfaces/crypto/CommonType.h"
#include "bcos-framework/protocol/Transaction.h"
#include "bcos-utilities/BucketMap.h"
#include "bcos-utilities/FixedBytes.h"
#include "boost/multi_index/hashed_index.hpp"
#include "boost/multi_index/mem_fun.hpp"
#include "boost/multi_index/member.hpp"
Expand Down
19 changes: 9 additions & 10 deletions bcos-txpool/test/unittests/txpool/TxPoolFixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,10 @@
* @date 2021-05-25
*/
#pragma once
#include "bcos-framework/bcos-framework/testutils/faker/FakeBlock.h"
#include "bcos-framework/bcos-framework/testutils/faker/FakeBlockHeader.h"
#include "bcos-framework/protocol/GlobalConfig.h"

#include "bcos-tool/TreeTopology.h"
#include "bcos-txpool/TxPoolConfig.h"
#include "bcos-txpool/TxPoolFactory.h"
#include "bcos-txpool/sync/TransactionSync.h"
#include "bcos-txpool/txpool/storage/MemoryStorage.h"
#include "bcos-txpool/txpool/validator/TxValidator.h"
#include <bcos-framework/consensus/ConsensusNode.h>
#include <bcos-framework/protocol/GlobalConfig.h>
#include <bcos-framework/testutils/faker/FakeBlock.h>
#include <bcos-framework/testutils/faker/FakeBlockHeader.h>
#include <bcos-framework/testutils/faker/FakeFrontService.h>
#include <bcos-framework/testutils/faker/FakeLedger.h>
#include <bcos-framework/testutils/faker/FakeSealer.h>
Expand All @@ -39,6 +32,12 @@
#include <bcos-tars-protocol/protocol/TransactionFactoryImpl.h>
#include <bcos-tars-protocol/protocol/TransactionReceiptFactoryImpl.h>
#include <bcos-task/Wait.h>
#include <bcos-tool/TreeTopology.h>
#include <bcos-txpool/TxPoolConfig.h>
#include <bcos-txpool/TxPoolFactory.h>
#include <bcos-txpool/sync/TransactionSync.h>
#include <bcos-txpool/txpool/storage/MemoryStorage.h>
#include <bcos-txpool/txpool/validator/TxValidator.h>
#include <boost/exception/diagnostic_information.hpp>
#include <boost/test/unit_test.hpp>
#include <chrono>
Expand Down
7 changes: 6 additions & 1 deletion cmake/IncludeDirectories.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
# include_directories(${CMAKE_CURRENT_BINARY_DIR})
# include_directories(${CMAKE_CURRENT_BINARY_DIR}/bcos-protocol)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-protocol)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/bcos-txpool)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-utilities)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-framework)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-txpool)
if (NOT ONLY_CPP_SDK)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/bcos-txpool)
endif ()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-front)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-sealer)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-pbft)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-rpbft)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-sync)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-gateway)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bcos-rpc)
Expand Down
2 changes: 1 addition & 1 deletion libinitializer/LedgerInitializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <bcos-framework/protocol/BlockFactory.h>
#include <bcos-framework/storage/StorageInterface.h>
#include <bcos-ledger/src/libledger/LedgerImpl.h>
#include <bcos-storage/bcos-storage/StorageWrapperImpl.h>
#include <bcos-storage/StorageWrapperImpl.h>
#include <bcos-tool/NodeConfig.h>

namespace bcos::initializer
Expand Down
10 changes: 5 additions & 5 deletions libinitializer/StorageInitializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @date 2021-10-14
*/
#pragma once
#include "bcos-storage/bcos-storage/RocksDBStorage.h"
#include "bcos-storage/bcos-storage/TiKVStorage.h"
#include "bcos-storage/RocksDBStorage.h"
#include "bcos-storage/TiKVStorage.h"
#include "boost/filesystem.hpp"
#include "rocksdb/convenience.h"
#include "rocksdb/filter_policy.h"
Expand Down Expand Up @@ -79,14 +79,14 @@ class StorageInitializer
options.statistics = rocksdb::CreateDBStatistics();
}
// block cache 128MB
std::shared_ptr<rocksdb::Cache> cache =
rocksdb::NewLRUCache(rocksDBOption.blockCacheSize);
std::shared_ptr<rocksdb::Cache> cache = rocksdb::NewLRUCache(rocksDBOption.blockCacheSize);
rocksdb::BlockBasedTableOptions table_options;
table_options.block_cache = cache;
// use bloom filter to optimize point lookup, i.e. get
table_options.filter_policy.reset(rocksdb::NewBloomFilterPolicy(10, false));
table_options.optimize_filters_for_memory = true;
// table_options.cache_index_and_filter_blocks = true; // this will increase memory and lower performance
// table_options.cache_index_and_filter_blocks = true; // this will increase memory and
// lower performance
options.table_factory.reset(rocksdb::NewBlockBasedTableFactory(table_options));

if (boost::filesystem::space(_path).available < 1 << 30)
Expand Down
3 changes: 2 additions & 1 deletion tests/unittest/ConsensusNodeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ BOOST_AUTO_TEST_CASE(test_moduleIDToString)
BOOST_CHECK("amop" == protocol::moduleIDToString(protocol::ModuleID::AMOP));
BOOST_CHECK("block_sync" == protocol::moduleIDToString(protocol::ModuleID::BlockSync));
BOOST_CHECK("txs_sync" == protocol::moduleIDToString(protocol::ModuleID::TxsSync));
BOOST_CHECK("light_node" == protocol::moduleIDToString(protocol::ModuleID::LIGHTNODE_GET_BLOCK));
BOOST_CHECK(
"light_node" == protocol::moduleIDToString(protocol::ModuleID::LIGHTNODE_GET_BLOCK));
BOOST_CHECK("cons_txs_sync" == protocol::moduleIDToString(protocol::ModuleID::ConsTxsSync));
}

Expand Down
Loading

0 comments on commit 776c53c

Please sign in to comment.