2018-01-07 06:05:16 +01:00
|
|
|
# Copyright (c) 2014-2018, The Monero Project
|
2014-10-21 17:13:59 +02:00
|
|
|
#
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without modification, are
|
|
|
|
# permitted provided that the following conditions are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
|
|
|
# conditions and the following disclaimer.
|
|
|
|
#
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
|
|
|
# of conditions and the following disclaimer in the documentation and/or other
|
|
|
|
# materials provided with the distribution.
|
|
|
|
#
|
|
|
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be
|
|
|
|
# used to endorse or promote products derived from this software without specific
|
|
|
|
# prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
|
|
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
|
|
# THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
|
|
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
2017-02-21 16:11:12 +01:00
|
|
|
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
|
|
|
|
2014-10-21 17:13:59 +02:00
|
|
|
set(common_sources
|
|
|
|
base58.cpp
|
|
|
|
command_line.cpp
|
|
|
|
dns_utils.cpp
|
2017-02-20 21:48:36 +01:00
|
|
|
download.cpp
|
2018-09-11 03:25:15 +02:00
|
|
|
error.cpp
|
|
|
|
expect.cpp
|
2015-07-14 21:28:25 +02:00
|
|
|
util.cpp
|
2016-10-10 21:47:00 +02:00
|
|
|
i18n.cpp
|
2018-09-29 22:18:08 +02:00
|
|
|
notify.cpp
|
2017-02-05 23:48:03 +01:00
|
|
|
password.cpp
|
2016-11-02 21:41:43 +01:00
|
|
|
perf_timer.cpp
|
Pruning
The blockchain prunes seven eighths of prunable tx data.
This saves about two thirds of the blockchain size, while
keeping the node useful as a sync source for an eighth
of the blockchain.
No other data is currently pruned.
There are three ways to prune a blockchain:
- run monerod with --prune-blockchain
- run "prune_blockchain" in the monerod console
- run the monero-blockchain-prune utility
The first two will prune in place. Due to how LMDB works, this
will not reduce the blockchain size on disk. Instead, it will
mark parts of the file as free, so that future data will use
that free space, causing the file to not grow until free space
grows scarce.
The third way will create a second database, a pruned copy of
the original one. Since this is a new file, this one will be
smaller than the original one.
Once the database is pruned, it will stay pruned as it syncs.
That is, there is no need to use --prune-blockchain again, etc.
2018-04-30 00:30:51 +02:00
|
|
|
pruning.cpp
|
2018-10-01 08:39:37 +02:00
|
|
|
spawn.cpp
|
2017-09-14 05:39:37 +02:00
|
|
|
threadpool.cpp
|
2018-03-27 13:35:27 +02:00
|
|
|
updates.cpp
|
2018-11-12 18:46:00 +01:00
|
|
|
aligned.c
|
|
|
|
combinator.cpp)
|
2016-07-27 07:02:55 +02:00
|
|
|
|
|
|
|
if (STACK_TRACE)
|
|
|
|
list(APPEND common_sources stack_trace.cpp)
|
|
|
|
endif()
|
2014-10-21 17:13:59 +02:00
|
|
|
|
2018-10-13 17:07:56 +02:00
|
|
|
if (BACKCOMPAT)
|
|
|
|
list(APPEND common_sources compat/glibc_compat.cpp)
|
|
|
|
endif()
|
|
|
|
|
2014-10-21 18:38:00 +02:00
|
|
|
set(common_headers)
|
|
|
|
|
|
|
|
set(common_private_headers
|
2017-09-13 10:22:16 +02:00
|
|
|
apply_permutation.h
|
2014-10-21 17:13:59 +02:00
|
|
|
base58.h
|
|
|
|
boost_serialization_helper.h
|
|
|
|
command_line.h
|
2017-02-05 23:48:03 +01:00
|
|
|
common_fwd.h
|
2014-10-21 17:13:59 +02:00
|
|
|
dns_utils.h
|
2017-02-20 21:48:36 +01:00
|
|
|
download.h
|
2018-09-11 03:25:15 +02:00
|
|
|
error.h
|
|
|
|
expect.h
|
2015-01-29 23:10:53 +01:00
|
|
|
http_connection.h
|
2018-09-29 22:18:08 +02:00
|
|
|
notify.h
|
2014-10-21 17:13:59 +02:00
|
|
|
pod-class.h
|
Pruning
The blockchain prunes seven eighths of prunable tx data.
This saves about two thirds of the blockchain size, while
keeping the node useful as a sync source for an eighth
of the blockchain.
No other data is currently pruned.
There are three ways to prune a blockchain:
- run monerod with --prune-blockchain
- run "prune_blockchain" in the monerod console
- run the monero-blockchain-prune utility
The first two will prune in place. Due to how LMDB works, this
will not reduce the blockchain size on disk. Instead, it will
mark parts of the file as free, so that future data will use
that free space, causing the file to not grow until free space
grows scarce.
The third way will create a second database, a pruned copy of
the original one. Since this is a new file, this one will be
smaller than the original one.
Once the database is pruned, it will stay pruned as it syncs.
That is, there is no need to use --prune-blockchain again, etc.
2018-04-30 00:30:51 +02:00
|
|
|
pruning.h
|
2015-01-29 23:10:53 +01:00
|
|
|
rpc_client.h
|
|
|
|
scoped_message_writer.h
|
2014-10-21 17:13:59 +02:00
|
|
|
unordered_containers_boost_serialization.h
|
|
|
|
util.h
|
2015-07-14 21:28:25 +02:00
|
|
|
varint.h
|
2016-03-28 20:00:18 +02:00
|
|
|
i18n.h
|
2017-02-05 23:48:03 +01:00
|
|
|
password.h
|
2016-10-10 21:47:00 +02:00
|
|
|
perf_timer.h
|
2018-10-01 08:39:37 +02:00
|
|
|
spawn.h
|
2016-11-02 21:41:43 +01:00
|
|
|
stack_trace.h
|
2017-09-14 05:39:37 +02:00
|
|
|
threadpool.h
|
2018-03-27 13:35:27 +02:00
|
|
|
updates.h
|
2018-11-12 18:46:00 +01:00
|
|
|
aligned.h
|
|
|
|
combinator.h)
|
2014-10-21 17:13:59 +02:00
|
|
|
|
2016-09-26 16:42:29 +02:00
|
|
|
monero_private_headers(common
|
2014-10-21 18:38:00 +02:00
|
|
|
${common_private_headers})
|
2016-09-26 16:42:29 +02:00
|
|
|
monero_add_library(common
|
2014-10-21 17:13:59 +02:00
|
|
|
${common_sources}
|
2014-10-21 18:38:00 +02:00
|
|
|
${common_headers}
|
2018-01-04 04:24:06 +01:00
|
|
|
${common_private_headers}
|
|
|
|
DEPENDS generate_translations_header)
|
2014-10-21 17:13:59 +02:00
|
|
|
target_link_libraries(common
|
2016-09-17 19:59:29 +02:00
|
|
|
PUBLIC
|
2017-05-21 08:21:17 +02:00
|
|
|
cncrypto
|
2014-10-21 17:13:59 +02:00
|
|
|
${UNBOUND_LIBRARY}
|
2016-03-28 20:00:18 +02:00
|
|
|
${LIBUNWIND_LIBRARIES}
|
2014-10-21 17:13:59 +02:00
|
|
|
${Boost_DATE_TIME_LIBRARY}
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
2016-09-17 19:59:29 +02:00
|
|
|
${Boost_THREAD_LIBRARY}
|
2017-02-04 16:58:23 +01:00
|
|
|
${Boost_REGEX_LIBRARY}
|
2018-04-26 06:02:54 +02:00
|
|
|
${Boost_CHRONO_LIBRARY}
|
2016-09-17 19:59:29 +02:00
|
|
|
PRIVATE
|
2017-02-21 16:11:12 +01:00
|
|
|
${OPENSSL_LIBRARIES}
|
2014-10-21 17:13:59 +02:00
|
|
|
${EXTRA_LIBRARIES})
|
2014-10-21 18:38:00 +02:00
|
|
|
|
2016-09-26 16:42:29 +02:00
|
|
|
#monero_install_headers(common
|
2014-10-21 18:38:00 +02:00
|
|
|
# ${common_headers})
|