Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase #2

Merged
merged 541 commits into from
Jun 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
541 commits
Select commit Hold shift + click to select a range
29dbf6c
Update cryptonote_basic_impl.cpp
shopglobal Apr 23, 2018
91141de
test bulletproof RCTs and fork to v8
shopglobal Apr 23, 2018
cf9b8f3
Update blockchain.cpp
shopglobal Apr 23, 2018
cdc2c35
Update blockchain.cpp
shopglobal Apr 23, 2018
d47ea49
Update cryptonote_basic_impl.cpp
shopglobal Apr 23, 2018
6d2c837
Update blockchain.cpp
shopglobal Apr 23, 2018
6d17398
Update blockchain.cpp
shopglobal Apr 24, 2018
09ed63b
Update blockchain.cpp
shopglobal Apr 24, 2018
0e26e13
Update blockchain.cpp
shopglobal Apr 24, 2018
874aa1b
Update blockchain.cpp
shopglobal Apr 24, 2018
3c94e6b
Update simplewallet.cpp
shopglobal Apr 24, 2018
e1b83ef
Update simplewallet.cpp
shopglobal Apr 24, 2018
3bb5572
Update simplewallet.cpp
shopglobal Apr 24, 2018
b8dfdb8
Update cryptonote_basic_impl.cpp
shopglobal Apr 24, 2018
de89960
MONEY_SUPPLY_ETN == MONEY_SUPPLY_V1, v2 fork enables MONEY_SUPPLY == …
shopglobal Apr 24, 2018
778875d
Update cryptonote_basic_impl.cpp
shopglobal Apr 24, 2018
0554847
Update cryptonote_config.h
shopglobal Apr 24, 2018
2fbed61
Update blockchain.cpp
shopglobal Apr 24, 2018
411ca48
Update cryptonote_config.h
shopglobal Apr 24, 2018
009c821
Update cryptonote_config.h
shopglobal Apr 24, 2018
b7af995
Update simplewallet.cpp
shopglobal Apr 24, 2018
520d227
Update cryptonote_config.h
shopglobal Apr 24, 2018
cf511cb
Update simplewallet.cpp
shopglobal Apr 24, 2018
bf37236
Update blockchain.cpp
shopglobal Apr 24, 2018
e58c5ed
Update cryptonote_basic_impl.cpp
shopglobal Apr 24, 2018
2c80881
Update cryptonote_config.h
shopglobal Apr 24, 2018
ebcdaee
Update cryptonote_basic_impl.cpp
shopglobal Apr 24, 2018
5fbf3fb
Update blockchain.cpp
shopglobal Apr 24, 2018
66f184c
Update cryptonote_basic_impl.cpp
shopglobal Apr 24, 2018
3ceeec9
Update blockchain.cpp
shopglobal Apr 24, 2018
dce664f
Update cryptonote_basic_impl.cpp
shopglobal Apr 24, 2018
8df9ba9
Update cryptonote_config.h
shopglobal Apr 24, 2018
9ad0b81
Update difficulty.cpp
shopglobal Apr 25, 2018
9dbde06
Update cryptonote_config.h
shopglobal Apr 25, 2018
221f33f
Update osx_install.sh
shopglobal Apr 26, 2018
ab3789a
cleanup
shopglobal Apr 26, 2018
eb8c822
Merge branch 'mixin-patch' of https://github.com/shopglobal/electrone…
shopglobal Apr 26, 2018
441cab3
cleanup windows build
shopglobal Apr 26, 2018
3d31cd3
Update wallet2.h
shopglobal Apr 26, 2018
88d8a70
Update simplewallet.cpp
shopglobal Apr 27, 2018
c922698
Update simplewallet.cpp
shopglobal Apr 27, 2018
e131be1
Update cryptonote_format_utils.cpp
shopglobal Apr 30, 2018
aa6ba17
Update cryptonote_format_utils.cpp
shopglobal Apr 30, 2018
29c8e7d
Update cryptonote_config.h
shopglobal May 2, 2018
b25a0ce
Update cryptonote_format_utils.cpp
shopglobal May 2, 2018
f374c46
Update net_node.inl
shopglobal May 2, 2018
ad0818c
Update net_node.inl
shopglobal May 2, 2018
58e2b33
Update cryptonote_format_utils.cpp
shopglobal May 3, 2018
95dce35
Update net_node.inl
shopglobal May 11, 2018
dcca45d
Prepare for hard fork
shopglobal May 11, 2018
040b94e
preparing for hard fork
shopglobal May 11, 2018
fe72f22
Update blockchain.cpp
shopglobal May 11, 2018
8bf51ee
Update blockchain.cpp
shopglobal May 11, 2018
3e980bb
Update net_node.inl
shopglobal May 11, 2018
ca79276
Update cryptonote_config.h
shopglobal May 11, 2018
89bfc47
Update cryptonote_config.h
shopglobal May 11, 2018
b3c6aa4
Update cryptonote_config.h
shopglobal May 11, 2018
25b08c7
Update cryptonote_basic_impl.cpp
shopglobal May 11, 2018
ef930d1
Update blockchain.cpp
shopglobal May 11, 2018
fa244a9
Update CMakeLists.txt
shopglobal May 13, 2018
b69fc67
Update CMakeLists.txt
shopglobal May 13, 2018
6f4015d
Update blockchain.cpp
shopglobal May 13, 2018
6327318
Update cryptonote_config.h
shopglobal May 18, 2018
4dafa19
Update simplewallet.h
shopglobal May 18, 2018
839dc7c
try to let sweep_unmixable through with no rings
shopglobal May 18, 2018
c29ffcf
Update simplewallet.cpp
shopglobal May 18, 2018
a69a9bf
Update simplewallet.cpp
shopglobal May 18, 2018
de47dc9
Update simplewallet.h
shopglobal May 18, 2018
b0d48db
Update simplewallet.cpp
shopglobal May 18, 2018
6264882
Update simplewallet.cpp
shopglobal May 18, 2018
a982df2
Update simplewallet.cpp
shopglobal May 18, 2018
25f5f6d
Update cryptonote_config.h
shopglobal May 18, 2018
dc994ed
Update net_node.inl
shopglobal May 18, 2018
8ef5255
Update blockchain.cpp
shopglobal May 18, 2018
b158883
Update blockchain.cpp
shopglobal May 18, 2018
1e1c86d
Update cryptonote_config.h
shopglobal May 18, 2018
3255b3a
Update wallet2.cpp
shopglobal May 18, 2018
001eaa7
Update simplewallet.cpp
shopglobal May 18, 2018
1f3dea7
MIN_MIXIN
shopglobal May 18, 2018
eced3a7
adjust_mixin
shopglobal May 18, 2018
9ce0315
MIN_MIXIN
shopglobal May 18, 2018
0ce18e1
MIN_MIXIN
shopglobal May 18, 2018
4c70dd4
Update blockchain.cpp
shopglobal May 18, 2018
7acc3cf
Update simplewallet.cpp
shopglobal May 18, 2018
5d6aff4
Update cryptonote_config.h
shopglobal May 18, 2018
124cb69
Update cryptonote_config.h
shopglobal May 18, 2018
12ced8b
Update simplewallet.cpp
shopglobal May 18, 2018
7d755d7
${LD_RAW_FLAGS} added back for static build
shopglobal May 18, 2018
7ad587f
Update CMakeLists.txt
shopglobal May 18, 2018
2f42e24
Update wallet.cpp
shopglobal May 18, 2018
0e54414
Update simplewallet.cpp
shopglobal May 18, 2018
2359d4a
fake_outs_count is mixin_count unless mixin_count is 0 or if else if …
shopglobal May 19, 2018
6803d7b
req.ring_size and req.mixin allowed
shopglobal May 19, 2018
c30e7a7
updated on_transfer_split & on_sweep_all
shopglobal May 19, 2018
9d4460e
adapt dynamic fee, and delay enforcement
shopglobal May 21, 2018
004737d
Update RCT MGs, Fee multipliers, Fee algo, and verbiage
shopglobal May 21, 2018
980d880
Merge pull request #2 from electronero/nettype
shopglobal May 21, 2018
c4727ed
Take fake_outs_count from mixin_count as long as it is not zero.
shopglobal May 23, 2018
59525a2
Update cryptonote_config.h
shopglobal May 23, 2018
6acb8b4
test hf 11
shopglobal May 28, 2018
8adf466
Update blockchain.cpp
shopglobal May 28, 2018
b786669
Update sweep_main and adjust for min_mixin
shopglobal May 29, 2018
62649f2
Update wallet2.cpp
shopglobal May 29, 2018
7801672
fork testnet v11
shopglobal May 29, 2018
b379ceb
off by one
shopglobal May 29, 2018
b0cc27e
testnet hard fork v11
shopglobal May 29, 2018
5aef1f7
update ports
shopglobal May 29, 2018
dc570fc
update ports, add stagenet genesis
shopglobal May 29, 2018
b0be7e5
testnet hard fork v12
shopglobal May 29, 2018
9a76bae
off by one
shopglobal May 29, 2018
4f88091
donation address
shopglobal May 29, 2018
d474602
Electronero verbiage
shopglobal May 29, 2018
73b5f72
Electronero verbiage
shopglobal May 29, 2018
6c18a52
Electronero verbiage
shopglobal May 29, 2018
f4e6750
ElectroneroPulse
shopglobal May 29, 2018
0bea8a8
Update blockchain.cpp
shopglobal May 29, 2018
fd413a3
final update to dev share for main net
shopglobal May 29, 2018
9caba86
final fork precedures
shopglobal May 30, 2018
e5fc185
Read Me
zhmrab May 30, 2018
f350249
Edit Readme.md
zhmrab May 30, 2018
b0ac52f
SEGREGATION_FORK_HEIGHT
shopglobal May 30, 2018
a4b5c9d
Update simplewallet.cpp
shopglobal May 30, 2018
f0dc250
Update blockchain.cpp
shopglobal May 30, 2018
9bc6dd5
master
shopglobal May 30, 2018
414e658
Update net_node.inl
shopglobal May 30, 2018
f8a570c
Update cryptonote_config.h
shopglobal May 30, 2018
a7d7718
Update cryptonote_config.h
shopglobal May 30, 2018
b6ea649
Update net_node.inl
shopglobal May 30, 2018
e5d3b1b
Update blockchain.cpp
shopglobal May 30, 2018
73f32f6
Update blockchain.cpp
shopglobal May 30, 2018
58499e4
Update blockchain.cpp
shopglobal May 30, 2018
61421a6
Delete 1.patch
shopglobal May 30, 2018
0ba0703
:cleanup
shopglobal May 30, 2018
a9d7da8
Delete chain.keys
shopglobal May 30, 2018
d7d8b80
:clean
shopglobal May 30, 2018
d69181c
Merge branch 'master' of https://github.com/electronero/electronero
shopglobal May 30, 2018
e686172
Update rpcpm2.sh
shopglobal May 30, 2018
994d424
Update rpc-test.sh
shopglobal May 30, 2018
97950ba
Update README.i18n.md
shopglobal May 30, 2018
dc26ff5
added submodules
cryptobender69 May 30, 2018
af46497
Merge pull request #1 from cryptobender69/patch-1
shopglobal May 31, 2018
a362c70
Update difficulty.cpp
shopglobal May 31, 2018
7afa35a
Update difficulty.h
shopglobal May 31, 2018
c177748
Update blockchain.cpp
shopglobal May 31, 2018
a54db17
Update cryptonote_config.h
shopglobal May 31, 2018
e99d8e2
fork to v9
shopglobal May 31, 2018
c7998ca
Update blockchain.cpp
shopglobal May 31, 2018
7d67f37
Update difficulty.cpp
shopglobal May 31, 2018
d7ce26c
Update blockchain.cpp
shopglobal May 31, 2018
1761523
Update cryptonote_config.h
shopglobal May 31, 2018
f9ce1b4
Update blockchain.cpp
shopglobal May 31, 2018
ce3bdeb
Update blockchain.cpp
shopglobal May 31, 2018
4931898
Update blockchain.cpp
shopglobal May 31, 2018
71c70ad
Update net_node.inl
shopglobal May 31, 2018
3fcd01d
Merge pull request #2 from electronero/lwma-patch
shopglobal May 31, 2018
d723a27
cleaning up
shopglobal May 31, 2018
3eea134
Update blockchain.cpp
shopglobal May 31, 2018
fd0c060
Update blockchain.cpp
shopglobal May 31, 2018
42fc8ee
Update blockchain.cpp
shopglobal May 31, 2018
3b22ec9
Update cryptonote_config.h
shopglobal May 31, 2018
2004d66
Update blockchain.cpp
shopglobal May 31, 2018
046cace
Update blockchain.cpp
shopglobal May 31, 2018
2e31b25
Update blockchain.cpp
shopglobal May 31, 2018
63f86d9
Update blockchain.cpp
shopglobal May 31, 2018
73d93b5
Merge pull request #3 from electronero/fork-patch
shopglobal May 31, 2018
034b651
Update version.cpp.in
shopglobal Jun 1, 2018
301be35
Fix the stagenet ports
shopglobal Jun 1, 2018
28997c7
fix stagenet ports
shopglobal Jun 1, 2018
6902fec
Update .gitmodules
shopglobal Jun 2, 2018
9e459eb
Update checkpoints.cpp
shopglobal Jun 2, 2018
c23fc9b
block 307128 had errors for pools
shopglobal Jun 2, 2018
a5379c9
Update blockchain.cpp
shopglobal Jun 2, 2018
099ab85
Update blockchain.cpp
shopglobal Jun 2, 2018
216b928
Update blockchain.cpp
shopglobal Jun 2, 2018
13feb13
Update cryptonote_config.h
shopglobal Jun 2, 2018
f1b76e3
Update blockchain.cpp
shopglobal Jun 2, 2018
8de877b
Update blockchain.cpp
shopglobal Jun 2, 2018
ada3981
Update blockchain.cpp
shopglobal Jun 2, 2018
5220108
Update blockchain.cpp
shopglobal Jun 2, 2018
f8eed62
Update blockchain.cpp
shopglobal Jun 2, 2018
5a04a80
Update blockchain.cpp
shopglobal Jun 2, 2018
ee072ab
hard fork v10 reapply SMA
shopglobal Jun 2, 2018
7f7db2c
Update blockchain.cpp
shopglobal Jun 2, 2018
576087c
Update blockchain.cpp
shopglobal Jun 2, 2018
58b56e3
Update blockchain.cpp
shopglobal Jun 2, 2018
56d1f22
Update blockchain.cpp
shopglobal Jun 2, 2018
5d560a5
Update blockchain.cpp
shopglobal Jun 2, 2018
34184a3
Update blockchain.cpp
shopglobal Jun 2, 2018
cf36b1d
add multisig to sweep unmixable
shopglobal Jun 3, 2018
375ce96
Update cryptonote_config.h
shopglobal Jun 3, 2018
e87f797
Update cryptonote_config.h
shopglobal Jun 3, 2018
aa9b940
Hard Fork v10, reset DAA for LWMA stablization
shopglobal Jun 3, 2018
8e0c8e2
off by one
shopglobal Jun 3, 2018
8d29a2f
off by one
shopglobal Jun 3, 2018
215f69d
off by one
shopglobal Jun 3, 2018
1d09ea9
STAGENET
shopglobal Jun 3, 2018
ed3c32d
Add stagenet to peer search, if you're on stagenet
shopglobal Jun 3, 2018
1a85f3f
m_nettype not nettype
shopglobal Jun 3, 2018
a7d8eed
Update net_node.inl
shopglobal Jun 4, 2018
80eb5fe
Update cryptonote_config.h
shopglobal Jun 4, 2018
051b0aa
Update net_node.inl
shopglobal Jun 4, 2018
ea26f95
Update cryptonote_config.h
shopglobal Jun 4, 2018
2ff400a
Update net_node.inl
shopglobal Jun 4, 2018
d0ae7dc
Reset net difficulty to stablize the Daa
shopglobal Jun 4, 2018
505cd87
Update blockchain.cpp
shopglobal Jun 4, 2018
ec0d05f
Update blockchain.cpp
shopglobal Jun 4, 2018
f841b2c
Update blockchain.cpp
shopglobal Jun 4, 2018
b175582
Update blockchain.cpp
shopglobal Jun 4, 2018
8ef89e8
Update blockchain.cpp
shopglobal Jun 4, 2018
d9f8063
Update blockchain.cpp
shopglobal Jun 4, 2018
19ebd81
Update blockchain.cpp
shopglobal Jun 4, 2018
39b1794
Update blockchain.cpp
shopglobal Jun 4, 2018
25bf0a8
Update blockchain.cpp
shopglobal Jun 4, 2018
00680cd
Update blockchain.cpp
shopglobal Jun 4, 2018
27a6d02
add sweep_mixable
shopglobal Jun 4, 2018
1833e5c
add sweep_mixable
shopglobal Jun 4, 2018
60f5179
add sweep_mixable
shopglobal Jun 4, 2018
fe31ee5
add create_unmixable_sweep_transactions
shopglobal Jun 4, 2018
a0ccf9a
add sweep_mixable
shopglobal Jun 4, 2018
a2c963f
Update cryptonote_config.h
shopglobal Jun 4, 2018
ec74916
Update cryptonote_config.h
shopglobal Jun 4, 2018
c3527fe
Update net_node.inl
shopglobal Jun 4, 2018
5a7fd32
Update cryptonote_basic_impl.cpp
shopglobal Jun 4, 2018
187770b
Update blockchain.cpp
shopglobal Jun 4, 2018
3531d78
Update cryptonote_basic_impl.cpp
shopglobal Jun 4, 2018
b6ce5fa
Update cryptonote_basic_impl.cpp
shopglobal Jun 4, 2018
6f39355
Update blockchain.cpp
shopglobal Jun 4, 2018
8699aac
Update cryptonote_basic_impl.cpp
shopglobal Jun 4, 2018
a278bc9
Update blockchain.cpp
shopglobal Jun 4, 2018
82583c2
Update blockchain.cpp
shopglobal Jun 4, 2018
f84324b
Update cryptonote_basic_impl.cpp
shopglobal Jun 4, 2018
31d770e
Update blockchain.cpp
shopglobal Jun 4, 2018
584f895
Update blockchain.cpp
shopglobal Jun 4, 2018
0dd4411
Update blockchain.cpp
shopglobal Jun 4, 2018
fec7ec5
Update blockchain.cpp
shopglobal Jun 4, 2018
b05ac7a
Update blockchain.cpp
shopglobal Jun 4, 2018
3f78522
Update blockchain.cpp
shopglobal Jun 4, 2018
6bb933b
Update blockchain.cpp
shopglobal Jun 4, 2018
4e12a84
Update blockchain.cpp
shopglobal Jun 4, 2018
7d23b84
Update blockchain.cpp
shopglobal Jun 4, 2018
b4a8838
Update cryptonote_basic_impl.cpp
shopglobal Jun 4, 2018
958b2dd
Update blockchain.cpp
shopglobal Jun 4, 2018
c45b8f9
Update cryptonote_config.h
shopglobal Jun 4, 2018
41072de
Update cryptonote_format_utils.cpp
shopglobal Jun 4, 2018
7857d97
Update cryptonote_format_utils.cpp
shopglobal Jun 4, 2018
3b52ef4
Merge branch 'master' into master
shopglobal Jun 4, 2018
b775a57
Merge pull request #4 from cryptonote-labs/master
shopglobal Jun 4, 2018
656f7eb
Update checkpoints.cpp
shopglobal Jun 4, 2018
3f3b8ec
Update difficulty.cpp
shopglobal Jun 5, 2018
19e0ea3
rebase
shopglobal Jun 9, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.DS_Store
/alpha
/beta
/doc
/build
/tags
log/

*.tar.gz
# vim swap files
*.swp
*.swo
Expand Down Expand Up @@ -103,4 +105,4 @@ local.properties
.texlipse
.idea/

/testnet
/testnet
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "external/unbound"]
path = external/unbound
url = https://github.com/monero-project/unbound
url = https://github.com/electronero-project/unbound
branch = monero
102 changes: 13 additions & 89 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,14 @@
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
list(INSERT CMAKE_MODULE_PATH 0
"${CMAKE_SOURCE_DIR}/cmake")
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
include(CheckLinkerFlag)
include(CheckLibraryExists)
include(CheckFunctionExists)

if (IOS)
INCLUDE(CmakeLists_IOS.txt)
endif()

cmake_minimum_required(VERSION 2.8.7)

project(monero)
project(electronero)

function (die msg)
if (NOT WIN32)
Expand All @@ -56,31 +49,6 @@ function (die msg)
message(FATAL_ERROR "${BoldRed}${msg}${ColourReset}")
endfunction ()

function (add_c_flag_if_supported flag var)
string(REPLACE "-" "_" supported ${flag}_c)
check_c_compiler_flag(${flag} ${supported})
if(${${supported}})
set(${var} "${${var}} ${flag}" PARENT_SCOPE)
endif()
endfunction()

function (add_cxx_flag_if_supported flag var)
string(REPLACE "-" "_" supported ${flag}_cxx)
check_cxx_compiler_flag(${flag} ${supported})
if(${${supported}})
set(${var} "${${var}} ${flag}" PARENT_SCOPE)
endif()
endfunction()

function (add_linker_flag_if_supported flag var)
string(REPLACE "-" "_" supported ${flag}_ld)
string(REPLACE "," "_" supported ${flag}_ld)
check_linker_flag(${flag} ${supported})
if(${${supported}})
set(${var} "${${var}} ${flag}" PARENT_SCOPE)
endif()
endfunction()

function (add_definition_if_function_found function var)
string(REPLACE "-" "_" supported ${function}_function)
check_function_exists(${function} ${supported})
Expand Down Expand Up @@ -157,7 +125,7 @@ set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG ${OPT_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${OPT_FLAGS_RELEASE}")

# set this to 0 if per-block checkpoint needs to be disabled
set(PER_BLOCK_CHECKPOINT 1)
set(PER_BLOCK_CHECKPOINT 0)

if(PER_BLOCK_CHECKPOINT)
add_definitions("-DPER_BLOCK_CHECKPOINT")
Expand Down Expand Up @@ -260,10 +228,10 @@ endif()
if (BUILD_SHARED_LIBS)
message(STATUS "Building internal libraries with position independent code")
add_definitions("-DBUILD_SHARED_LIBS")
set(PIC_FLAG "-fPIC")
else()
message(STATUS "Building internal libraries as static")
endif()
set(PIC_FLAG "-fPIC")

if(MINGW)
string(REGEX MATCH "^[^/]:/[^/]*" msys2_install_path "${CMAKE_C_COMPILER}")
Expand Down Expand Up @@ -414,10 +382,6 @@ endif()

find_package(PCSC)

add_definition_if_library_exists(c memset_s "string.h" HAVE_MEMSET_S)
add_definition_if_library_exists(c explicit_bzero "strings.h" HAVE_EXPLICIT_BZERO)
add_definition_if_function_found(strptime HAVE_STRPTIME)

add_definitions(-DAUTO_INITIALIZE_EASYLOGGINGPP)

# Generate header for embedded translations
Expand Down Expand Up @@ -541,50 +505,6 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")

# if those don't work for your compiler, single it out where appropriate
if(CMAKE_BUILD_TYPE STREQUAL "Release")
set(C_SECURITY_FLAGS "${C_SECURITY_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1")
set(CXX_SECURITY_FLAGS "${CXX_SECURITY_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1")
endif()

# warnings
add_c_flag_if_supported(-Wformat C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-Wformat CXX_SECURITY_FLAGS)
add_c_flag_if_supported(-Wformat-security C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-Wformat-security CXX_SECURITY_FLAGS)

# -fstack-protector
add_c_flag_if_supported(-fstack-protector C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-fstack-protector CXX_SECURITY_FLAGS)
add_c_flag_if_supported(-fstack-protector-strong C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-fstack-protector-strong CXX_SECURITY_FLAGS)

# linker
if (NOT WIN32)
# Windows binaries die on startup with PIE
add_linker_flag_if_supported(-pie LD_SECURITY_FLAGS)
endif()
add_linker_flag_if_supported(-Wl,-z,relro LD_SECURITY_FLAGS)
add_linker_flag_if_supported(-Wl,-z,now LD_SECURITY_FLAGS)
add_linker_flag_if_supported(-Wl,-z,noexecstack noexecstack_SUPPORTED)
if (noexecstack_SUPPORTED)
set(LD_SECURITY_FLAGS "${LD_SECURITY_FLAGS} -Wl,-z,noexecstack")
set(LD_RAW_FLAGS ${LD_RAW_FLAGS} -z noexecstack)
endif()
add_linker_flag_if_supported(-Wl,-z,noexecheap noexecheap_SUPPORTED)
if (noexecheap_SUPPORTED)
set(LD_SECURITY_FLAGS "${LD_SECURITY_FLAGS} -Wl,-z,noexecheap")
set(LD_RAW_FLAGS ${LD_RAW_FLAGS} -z noexecheap)
endif()

# some windows linker bits
if (WIN32)
add_linker_flag_if_supported(-Wl,--dynamicbase LD_SECURITY_FLAGS)
add_linker_flag_if_supported(-Wl,--nxcompat LD_SECURITY_FLAGS)
endif()

message(STATUS "Using C security hardening flags: ${C_SECURITY_FLAGS}")
message(STATUS "Using C++ security hardening flags: ${CXX_SECURITY_FLAGS}")
message(STATUS "Using linker security hardening flags: ${LD_SECURITY_FLAGS}")

option(NO_AES "Explicitly disable AES support" ${NO_AES})

Expand Down Expand Up @@ -614,9 +534,8 @@ else()
message(STATUS "AES support disabled")
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -D_GNU_SOURCE ${MINGW_FLAG} ${STATIC_ASSERT_FLAG} ${WARNINGS} ${C_WARNINGS} ${ARCH_FLAG} ${COVERAGE_FLAGS} ${PIC_FLAG} ${C_SECURITY_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_GNU_SOURCE ${MINGW_FLAG} ${STATIC_ASSERT_CPP_FLAG} ${WARNINGS} ${CXX_WARNINGS} ${ARCH_FLAG} ${COVERAGE_FLAGS} ${PIC_FLAG} ${CXX_SECURITY_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LD_SECURITY_FLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -D_GNU_SOURCE ${MINGW_FLAG} ${STATIC_ASSERT_FLAG} ${WARNINGS} ${C_WARNINGS} ${ARCH_FLAG} ${COVERAGE_FLAGS} ${PIC_FLAG}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_GNU_SOURCE ${MINGW_FLAG} ${STATIC_ASSERT_CPP_FLAG} ${WARNINGS} ${CXX_WARNINGS} ${ARCH_FLAG} ${COVERAGE_FLAGS} ${PIC_FLAG}")

# With GCC 6.1.1 the compiled binary malfunctions due to aliasing. Until that
# is fixed in the code (Issue #847), force compiler to be conservative.
Expand Down Expand Up @@ -703,7 +622,6 @@ else()
if(ANDROID AND NOT BUILD_GUI_DEPS STREQUAL "ON" OR IOS)
#From Android 5: "only position independent executables (PIE) are supported"
message(STATUS "Enabling PIE executable")
set(PIC_FLAG "")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_CXX_FLAGS} -fPIE -pie")
Expand Down Expand Up @@ -783,7 +701,7 @@ if(STATIC)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME ON)
endif()
find_package(Boost 1.58 QUIET REQUIRED COMPONENTS system filesystem thread date_time chrono regex serialization program_options locale)
find_package(Boost 1.58 QUIET REQUIRED COMPONENTS system filesystem thread date_time chrono regex serialization program_options)

set(CMAKE_FIND_LIBRARY_SUFFIXES ${OLD_LIB_SUFFIXES})
if(NOT Boost_FOUND)
Expand All @@ -800,7 +718,6 @@ endif()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
if(MINGW)
set(EXTRA_LIBRARIES mswsock;ws2_32;iphlpapi)
set(ICU_LIBRARIES ${Boost_LOCALE_LIBRARY} icuio icuin icuuc icudt icutu iconv)
elseif(APPLE OR OPENBSD OR ANDROID)
set(EXTRA_LIBRARIES "")
elseif(FREEBSD)
Expand Down Expand Up @@ -897,4 +814,11 @@ option(BUILD_GUI_DEPS "Build GUI dependencies." OFF)
option(INSTALL_VENDORED_LIBUNBOUND "Install libunbound binary built from source vendored with this repo." OFF)


include(CheckCCompilerFlag)

CHECK_C_COMPILER_FLAG(-std=c11 HAVE_C11)

include(CheckLibraryExists)

check_library_exists(c memset_s "string.h" HAVE_MEMSET_S)
check_library_exists(c explicit_bzero "strings.h" HAVE_EXPLICIT_BZERO)
12 changes: 6 additions & 6 deletions README.i18n.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Monero daemon internationalization
Electronero daemon internationalization
==================================

The Monero command line tools can be translated in various languages. If you wish to contribute and need help/support, contact the [Monero Localization Workgroup on Taiga](https://taiga.getmonero.org/project/erciccione-monero-localization/) or come chat on `#monero-translations` (Freenode/IRC, riot/matrix, MatterMost)
The Electronero command line tools can be translated in various languages. If you wish to contribute and need help/support, contact Interchained on telegram https://t.me/interchained

In order to use the same translation workflow as the [Monero Core GUI](https://github.com/monero-project/monero-core), they use Qt Linguist translation files. However, to avoid the dependencies on Qt this normally implies, they use a custom loader to read those files at runtime.
In order to use the same translation workflow as the [Electronero Core GUI](https://github.com/electronero/electronero), they use Qt Linguist translation files. However, to avoid the dependencies on Qt this normally implies, they use a custom loader to read those files at runtime.

### Tools for translators

Expand All @@ -19,19 +19,19 @@ To update ts files after changing source code:

To add a new language, eg Spanish (ISO code es):

cp translations/monero.ts translations/monero_es.ts
cp translations/monero.ts translations/electronero_es.ts

To edit translations for Spanish:

linguist translations/monero_es.ts
linguist translations/electronero_es.ts

To build translations after modifying them:

./utils/translations/build-translations.sh

To test a translation:

LANG=es ./build/release/bin/monero-wallet-cli
LANG=es ./build/release/bin/electronero-wallet-cli

To add new translatable strings in the source code:

Expand Down
Loading