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

Commit f8a38d8

Browse files
authored
Merge pull request #922 from GolosChain/golos-v0.18.4
Golos v0.18.4
2 parents 56a0a8e + 59b58b8 commit f8a38d8

145 files changed

Lines changed: 14445 additions & 6782 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ env:
1313
- DOCKERFILE=Dockerfile DOCKERNAME=""
1414
- DOCKERFILE=share/golosd/docker/Dockerfile-test DOCKERNAME="-test"
1515
- DOCKERFILE=share/golosd/docker/Dockerfile-testnet DOCKERNAME="-testnet"
16-
- DOCKERFILE=share/golosd/docker/Dockerfile-lowmem DOCKERNAME="-lowmem"
1716
- DOCKERFILE=share/golosd/docker/Dockerfile-mongo DOCKERNAME="-mongo"
1817

1918
matrix:
@@ -26,12 +25,16 @@ script:
2625
elif [ -n "$TRAVIS_TAG" ]; then
2726
export DOCKERNAME="$TRAVIS_TAG""$DOCKERNAME";
2827
export EXPORTNAME="$DOCKERNAME";
29-
else
28+
elif [ "$DOCKERNAME" == "-testnet" ] || [ "$DOCKERNAME" == "-test" ]; then
3029
export DOCKERNAME=develop"$DOCKERNAME";
30+
else
31+
export DOCKERNAME="";
3132
fi
3233
- echo "$DOCKERFILE"
3334
- echo "$DOCKERNAME"
34-
- docker build -t goloschain/golos:"$DOCKERNAME" -f "$DOCKERFILE" .
35+
- if [ -n "$DOCKERNAME" ]; then
36+
docker build -t goloschain/golos:"$DOCKERNAME" -f "$DOCKERFILE" .;
37+
fi
3538

3639
after_success:
3740
- echo "$EXPORTNAME"

CMakeLists.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,6 @@ if(MAX_19_VOTED_WITNESSES AND BUILD_GOLOS_TESTNET)
7373
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSTEEMIT_MAX_VOTED_WITNESSES=19")
7474
endif()
7575

76-
option(LOW_MEMORY_NODE "Build source for low memory node (ON OR OFF)" FALSE)
77-
message(STATUS "LOW_MEMORY_NODE: ${LOW_MEMORY_NODE}")
78-
if(LOW_MEMORY_NODE)
79-
message(STATUS " ")
80-
message(STATUS " CONFIGURING FOR LOW MEMORY NODE ")
81-
message(STATUS " ")
82-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIS_LOW_MEM")
83-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DIS_LOW_MEM")
84-
endif()
85-
8676
option(CHAINBASE_CHECK_LOCKING "Check locks in chainbase (ON or OFF)" TRUE)
8777
message(STATUS "CHAINBASE_CHECK_LOCKING: ${CHAINBASE_CHECK_LOCKING}")
8878
if(CHAINBASE_CHECK_LOCKING)
@@ -285,10 +275,3 @@ else()
285275
message(STATUS "\n\n CONFIGURED FOR GOLOS NETWORK \n\n")
286276
endif()
287277

288-
if(LOW_MEMORY_NODE)
289-
message(STATUS "\n\n CONFIGURED FOR LOW MEMORY NODE \n\n")
290-
else()
291-
message(STATUS "\n\n CONFIGURED FOR FULL NODE \n\n")
292-
endif()
293-
294-

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ RUN \
4141
-DCMAKE_BUILD_TYPE=Release \
4242
-DBUILD_GOLOS_TESTNET=FALSE \
4343
-DBUILD_SHARED_LIBRARIES=FALSE \
44-
-DLOW_MEMORY_NODE=FALSE \
4544
-DCHAINBASE_CHECK_LOCKING=FALSE \
4645
-DENABLE_MONGO_PLUGIN=FALSE \
4746
.. \

documentation/building.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ Specifies whether to build with or without optimization and without or with
88
the symbol table for debugging. Unless you are specifically debugging or
99
running tests, it is recommended to build as release.
1010

11-
### LOW_MEMORY_NODE=[FALSE/TRUE]
12-
13-
Builds golosd to be a consensus-only low memory node. Data and fields not
14-
needed for consensus are not stored in the object database. This option is
15-
recommended for witnesses and seed-nodes.
16-
1711
### BUILD_GOLOS_TESTNET=[FALSE/TRUE]
1812

1913
Builds golos for use in a private testnet. Also required for building unit tests.

libraries/api/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ list(APPEND CURRENT_TARGET_HEADERS
1414
list(APPEND CURRENT_TARGET_SOURCES
1515
account_api_object.cpp
1616
discussion_helper.cpp
17-
comment_api_object.cpp
1817
chain_api_properties.cpp
1918
witness_api_object.cpp
2019
)

libraries/api/account_api_object.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ account_api_object::account_api_object(const account_object& a, const golos::cha
3838
proxied_vsf_votes.push_back(a.proxied_vsf_votes[i]);
3939
}
4040

41-
const auto& auth = db.get<account_authority_object, by_account>(name);
41+
const auto& auth = db.get_authority(name);
4242
owner = authority(auth.owner);
4343
active = authority(auth.active);
4444
posting = authority(auth.posting);
4545
last_owner_update = auth.last_owner_update;
4646

47-
#ifndef IS_LOW_MEM
48-
const auto& meta = db.get<account_metadata_object, by_account>(name);
49-
json_metadata = golos::chain::to_string(meta.json_metadata);
50-
#endif
47+
auto meta = db.find<account_metadata_object, by_account>(name);
48+
if (meta != nullptr) {
49+
json_metadata = golos::chain::to_string(meta->json_metadata);
50+
}
5151

5252
auto post = db.find<account_bandwidth_object, by_account_bandwidth_type>(std::make_tuple(name, bandwidth_type::post));
5353
if (post != nullptr) {

libraries/api/comment_api_object.cpp

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)