Skip to content
This repository was archived by the owner on Oct 4, 2019. It is now read-only.

Commit 0ba8ad7

Browse files
afalaleevkotbegemot
authored andcommitted
Change compilation flags for tests.
1 parent 7069d4f commit 0ba8ad7

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

libraries/protocol/include/golos/protocol/config.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
#define STEEMIT_INIT_MINER_NAME "cyberfounder"
4949
#define STEEMIT_NUM_INIT_MINERS 1
5050
#define STEEMIT_INIT_TIME (fc::time_point_sec());
51-
#define STEEMIT_MAX_VOTED_WITNESSES 19
51+
#ifndef STEEMIT_MAX_VOTED_WITNESSES
52+
# define STEEMIT_MAX_VOTED_WITNESSES 1
53+
#endif
5254
#define STEEMIT_MAX_MINER_WITNESSES 1
5355
#define STEEMIT_MAX_RUNNER_WITNESSES 1
5456
#define STEEMIT_MAX_WITNESSES (STEEMIT_MAX_VOTED_WITNESSES+STEEMIT_MAX_MINER_WITNESSES+STEEMIT_MAX_RUNNER_WITNESSES) /// 21 is more than enough

plugins/market_history/include/golos/plugins/market_history/market_history_objects.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ FC_REFLECT((golos::plugins::market_history::order_book),
180180
(bids)(asks));
181181
FC_REFLECT((golos::plugins::market_history::market_trade),
182182
(date)(current_pays)(open_pays));
183-
FC_REFLECT((golos::plugins::market_history::limit_order),
184-
(real_price)(rewarded));
183+
184+
FC_REFLECT_DERIVED((golos::plugins::market_history::limit_order),((golos::plugins::market_history::limit_order_api_object)) ,(real_price)(rewarded));
185185

186186

187187

share/golosd/docker/Dockerfile-test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ RUN \
4444
-DBUILD_GOLOS_TESTNET=TRUE \
4545
-DLOW_MEMORY_NODE=FALSE \
4646
-DCLEAR_VOTES=TRUE \
47+
-DSTEEMIT_MAX_VOTED_WITNESSES=19 \
4748
.. && \
4849
make -j$(nproc) chain_test plugin_test && \
4950
./tests/chain_test && \
@@ -61,6 +62,7 @@ RUN \
6162
-DBUILD_GOLOS_TESTNET=TRUE \
6263
-DLOW_MEMORY_NODE=FALSE \
6364
-DCLEAR_VOTES=TRUE \
65+
-DSTEEMIT_MAX_VOTED_WITNESSES=19 \
6466
.. && \
6567
make -j$(nproc) chain_test plugin_test && \
6668
./tests/chain_test && \

0 commit comments

Comments
 (0)