Skip to content

Commit 7bf0110

Browse files
author
Anatol Sevostyan
committed
core: fixed tests
1 parent a76da82 commit 7bf0110

File tree

6 files changed

+6
-15
lines changed

6 files changed

+6
-15
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ include_directories(${PROJECT_SOURCE_DIR})
2424

2525
add_subdirectory(miner)
2626
add_subdirectory(chain)
27+
add_subdirectory(pool)
2728

2829

2930
set_target_properties(miner

chain/unittests/miner_test.cpp

-12
This file was deleted.

miner/unittests/miner_test.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ int main()
55
{
66
beam::Miner miner;
77
beam::BlockHeader header;
8+
9+
810

911
beam::Block block = miner.createBlock(header);
1012

pool/txpool.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace beam
44
{
5-
std::vector<Transaction> TxPool::getMinableTransaction(size_t maxCount = 5000)
5+
std::vector<Transaction> TxPool::getMinableTransactions(size_t maxCount)
66
{
77
return std::vector<Transaction>();
88
}

pool/txpool.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ namespace beam
77
class TxPool
88
{
99
public:
10-
std::vector<Transaction> getMinableTransaction(size_t maxCount = 5000);
10+
std::vector<Transaction> getMinableTransactions(size_t maxCount = 5000);
1111
};
1212
}

pool/unittests/pool_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "pool/pool.h"
1+
#include "pool/txpool.h"
22
#include <iostream>
33

44
int main()

0 commit comments

Comments
 (0)