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

Aeon upstream 7 #180

Merged
merged 24 commits into from
Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
dc68f6c
blockchain_ancestry: finds all ancestors of a tx, block, or chain /mo…
moneromooo-monero Jul 16, 2018
325b876
blockchain_ancestry: add an incremental mode /monero#4147
moneromooo-monero Jul 27, 2018
308c0ef
blockchain_ancestry: faster and uses less memory /monero#4147
moneromooo-monero Jul 30, 2018
07c3f45
blockchain_depth: get the average min depth of a set of txes /monero#…
moneromooo-monero Jul 10, 2018
d2d3b0f
blockchain_depth: add average min depth /monero#4147
moneromooo-monero Aug 7, 2018
dd9a4cc
replace Monero string with Aeon
stoffu May 27, 2020
92876f0
cn_deserialize: support pruned transactions /monero#4154
moneromooo-monero Jul 19, 2018
6a2c6d1
cn_deserialize: extract payment ids from extra nonce /monero#4154
moneromooo-monero Jul 19, 2018
dca6fea
simplewallet: handle transfers using an aeon: URI /monero#4208
moneromooo-monero Aug 1, 2018
9b8ed9b
wallet2: fix checking the wrong vector when adding hashes /monero#4221
moneromooo-monero Aug 4, 2018
4d8ce36
wallet2: trim hash chain after fast refresh of hashes /monero#4221
moneromooo-monero Aug 4, 2018
bbce88d
wallet2: fix refresh retry when a block/tx fails to parse /monero#4221
moneromooo-monero Aug 4, 2018
66e16f7
CMakeLists.txt: add -mmitigate-rop to security flags if found /monero…
moneromooo-monero Aug 7, 2018
829a030
Add bulletproof support /monero#4251
cslashm Jul 30, 2018
130a6f4
fuzz_tests: use __AFL_INIT when available /monero#4254
moneromooo-monero Aug 13, 2018
dd65fc6
epee: use the socket::bind variant which does not throw /monero#4307
moneromooo-monero Aug 27, 2018
a0468e3
abstract_tcp_server2: fix binding to the wrong IP /monero#4307
moneromooo-monero Sep 9, 2018
244dd09
cn_deserialize: comment out pruned tx case /monero#4380
moneromooo-monero Sep 14, 2018
c1d26ce
remove unused fields from relay_tx RPC /monero#4329
el00ruobuob Sep 2, 2018
6ae6f22
cryptonote_format_utils: do not early out on invalid tx pubkeys /mone…
moneromooo-monero Aug 24, 2018
4a3acf9
wallet2: fill in v2 height for stagenet /monero#4331
moneromooo-monero Sep 3, 2018
95065e1
wallet2.get_reserve_proof: throw when specified amount is zero /moner…
stoffu Sep 4, 2018
779a43c
wallet_rpc_server: error out if wallet-file and wallet-dir are both u…
moneromooo-monero Sep 4, 2018
3bac43a
wallet2: fix secondary partially signed multisig txes /monero#4347
moneromooo-monero Sep 8, 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
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,9 @@ else()
add_cxx_flag_if_supported(-mmitigate-rop CXX_SECURITY_FLAGS)
endif()

add_c_flag_if_supported(-mmitigate-rop C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-mmitigate-rop CXX_SECURITY_FLAGS)

# linker
if (NOT (WIN32 AND (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 9.1)))
# Windows binaries die on startup with PIE when compiled with GCC <9.x
Expand Down
24 changes: 20 additions & 4 deletions contrib/epee/include/net/abstract_tcp_server2.inl
Original file line number Diff line number Diff line change
Expand Up @@ -1115,8 +1115,16 @@ POP_WARNINGS
sock_.open(remote_endpoint.protocol());
if(bind_ip != "0.0.0.0" && bind_ip != "0" && bind_ip != "" )
{
boost::asio::ip::tcp::endpoint local_endpoint(boost::asio::ip::address::from_string(adr.c_str()), 0);
sock_.bind(local_endpoint);
boost::asio::ip::tcp::endpoint local_endpoint(boost::asio::ip::address::from_string(bind_ip.c_str()), 0);
boost::system::error_code ec;
sock_.bind(local_endpoint, ec);
if (ec)
{
MERROR("Error binding to " << bind_ip << ": " << ec.message());
if (sock_.is_open())
sock_.close();
return false;
}
}

/*
Expand Down Expand Up @@ -1221,8 +1229,16 @@ POP_WARNINGS
sock_.open(remote_endpoint.protocol());
if(bind_ip != "0.0.0.0" && bind_ip != "0" && bind_ip != "" )
{
boost::asio::ip::tcp::endpoint local_endpoint(boost::asio::ip::address::from_string(adr.c_str()), 0);
sock_.bind(local_endpoint);
boost::asio::ip::tcp::endpoint local_endpoint(boost::asio::ip::address::from_string(bind_ip.c_str()), 0);
boost::system::error_code ec;
sock_.bind(local_endpoint, ec);
if (ec)
{
MERROR("Error binding to " << bind_ip << ": " << ec.message());
if (sock_.is_open())
sock_.close();
return false;
}
}

boost::shared_ptr<boost::asio::deadline_timer> sh_deadline(new boost::asio::deadline_timer(io_service_));
Expand Down
64 changes: 64 additions & 0 deletions src/blockchain_utilities/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,28 @@ monero_private_headers(blockchain_usage



set(blockchain_ancestry_sources
blockchain_ancestry.cpp
)

set(blockchain_ancestry_private_headers)

monero_private_headers(blockchain_ancestry
${blockchain_ancestry_private_headers})



set(blockchain_depth_sources
blockchain_depth.cpp
)

set(blockchain_depth_private_headers)

monero_private_headers(blockchain_depth
${blockchain_depth_private_headers})



monero_add_executable(blockchain_import
${blockchain_import_sources}
${blockchain_import_private_headers}
Expand Down Expand Up @@ -183,3 +205,45 @@ set_property(TARGET blockchain_usage
OUTPUT_NAME "aeon-blockchain-usage")
install(TARGETS blockchain_usage DESTINATION bin)

monero_add_executable(blockchain_ancestry
${blockchain_ancestry_sources}
${blockchain_ancestry_private_headers})

target_link_libraries(blockchain_ancestry
PRIVATE
cryptonote_core
blockchain_db
version
epee
${Boost_FILESYSTEM_LIBRARY}
${Boost_SYSTEM_LIBRARY}
${Boost_THREAD_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
${EXTRA_LIBRARIES})

set_property(TARGET blockchain_ancestry
PROPERTY
OUTPUT_NAME "aeon-blockchain-ancestry")
install(TARGETS blockchain_ancestry DESTINATION bin)

monero_add_executable(blockchain_depth
${blockchain_depth_sources}
${blockchain_depth_private_headers})

target_link_libraries(blockchain_depth
PRIVATE
cryptonote_core
blockchain_db
version
epee
${Boost_FILESYSTEM_LIBRARY}
${Boost_SYSTEM_LIBRARY}
${Boost_THREAD_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
${EXTRA_LIBRARIES})

set_property(TARGET blockchain_depth
PROPERTY
OUTPUT_NAME "aeon-blockchain-depth")
install(TARGETS blockchain_depth DESTINATION bin)

Loading