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

Commit

Permalink
Merge pull request #922 from GolosChain/golos-v0.18.4
Browse files Browse the repository at this point in the history
Golos v0.18.4
  • Loading branch information
afalaleev authored Aug 8, 2018
2 parents 56a0a8e + 59b58b8 commit f8a38d8
Show file tree
Hide file tree
Showing 145 changed files with 14,445 additions and 6,782 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ env:
- DOCKERFILE=Dockerfile DOCKERNAME=""
- DOCKERFILE=share/golosd/docker/Dockerfile-test DOCKERNAME="-test"
- DOCKERFILE=share/golosd/docker/Dockerfile-testnet DOCKERNAME="-testnet"
- DOCKERFILE=share/golosd/docker/Dockerfile-lowmem DOCKERNAME="-lowmem"
- DOCKERFILE=share/golosd/docker/Dockerfile-mongo DOCKERNAME="-mongo"

matrix:
Expand All @@ -26,12 +25,16 @@ script:
elif [ -n "$TRAVIS_TAG" ]; then
export DOCKERNAME="$TRAVIS_TAG""$DOCKERNAME";
export EXPORTNAME="$DOCKERNAME";
else
elif [ "$DOCKERNAME" == "-testnet" ] || [ "$DOCKERNAME" == "-test" ]; then
export DOCKERNAME=develop"$DOCKERNAME";
else
export DOCKERNAME="";
fi
- echo "$DOCKERFILE"
- echo "$DOCKERNAME"
- docker build -t goloschain/golos:"$DOCKERNAME" -f "$DOCKERFILE" .
- if [ -n "$DOCKERNAME" ]; then
docker build -t goloschain/golos:"$DOCKERNAME" -f "$DOCKERFILE" .;
fi

after_success:
- echo "$EXPORTNAME"
Expand Down
17 changes: 0 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,6 @@ if(MAX_19_VOTED_WITNESSES AND BUILD_GOLOS_TESTNET)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSTEEMIT_MAX_VOTED_WITNESSES=19")
endif()

option(LOW_MEMORY_NODE "Build source for low memory node (ON OR OFF)" FALSE)
message(STATUS "LOW_MEMORY_NODE: ${LOW_MEMORY_NODE}")
if(LOW_MEMORY_NODE)
message(STATUS " ")
message(STATUS " CONFIGURING FOR LOW MEMORY NODE ")
message(STATUS " ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIS_LOW_MEM")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DIS_LOW_MEM")
endif()

option(CHAINBASE_CHECK_LOCKING "Check locks in chainbase (ON or OFF)" TRUE)
message(STATUS "CHAINBASE_CHECK_LOCKING: ${CHAINBASE_CHECK_LOCKING}")
if(CHAINBASE_CHECK_LOCKING)
Expand Down Expand Up @@ -285,10 +275,3 @@ else()
message(STATUS "\n\n CONFIGURED FOR GOLOS NETWORK \n\n")
endif()

if(LOW_MEMORY_NODE)
message(STATUS "\n\n CONFIGURED FOR LOW MEMORY NODE \n\n")
else()
message(STATUS "\n\n CONFIGURED FOR FULL NODE \n\n")
endif()


1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ RUN \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_GOLOS_TESTNET=FALSE \
-DBUILD_SHARED_LIBRARIES=FALSE \
-DLOW_MEMORY_NODE=FALSE \
-DCHAINBASE_CHECK_LOCKING=FALSE \
-DENABLE_MONGO_PLUGIN=FALSE \
.. \
Expand Down
6 changes: 0 additions & 6 deletions documentation/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ Specifies whether to build with or without optimization and without or with
the symbol table for debugging. Unless you are specifically debugging or
running tests, it is recommended to build as release.

### LOW_MEMORY_NODE=[FALSE/TRUE]

Builds golosd to be a consensus-only low memory node. Data and fields not
needed for consensus are not stored in the object database. This option is
recommended for witnesses and seed-nodes.

### BUILD_GOLOS_TESTNET=[FALSE/TRUE]

Builds golos for use in a private testnet. Also required for building unit tests.
Expand Down
1 change: 0 additions & 1 deletion libraries/api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ list(APPEND CURRENT_TARGET_HEADERS
list(APPEND CURRENT_TARGET_SOURCES
account_api_object.cpp
discussion_helper.cpp
comment_api_object.cpp
chain_api_properties.cpp
witness_api_object.cpp
)
Expand Down
10 changes: 5 additions & 5 deletions libraries/api/account_api_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ account_api_object::account_api_object(const account_object& a, const golos::cha
proxied_vsf_votes.push_back(a.proxied_vsf_votes[i]);
}

const auto& auth = db.get<account_authority_object, by_account>(name);
const auto& auth = db.get_authority(name);
owner = authority(auth.owner);
active = authority(auth.active);
posting = authority(auth.posting);
last_owner_update = auth.last_owner_update;

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

auto post = db.find<account_bandwidth_object, by_account_bandwidth_type>(std::make_tuple(name, bandwidth_type::post));
if (post != nullptr) {
Expand Down
59 changes: 0 additions & 59 deletions libraries/api/comment_api_object.cpp

This file was deleted.

Loading

0 comments on commit f8a38d8

Please sign in to comment.