1
0
Fork 0
forked from lthn/blockchain

various compilation and warning fixes for gcc

This commit is contained in:
sowle 2022-05-27 19:50:21 +02:00
parent 775fab7374
commit 4c720ebd82
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
4 changed files with 4 additions and 4 deletions

View file

@ -174,7 +174,7 @@ ENABLE_SHARED_PCH_EXECUTABLE(connectivity_tool)
add_executable(simplewallet ${SIMPLEWALLET})
add_dependencies(simplewallet version)
target_link_libraries(simplewallet wallet rpc currency_core crypto common zlibstatic ethash ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
target_link_libraries(simplewallet wallet rpc currency_core crypto common zlibstatic ethash ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} dl)
ENABLE_SHARED_PCH(simplewallet SIMPLEWALLET)
ENABLE_SHARED_PCH_EXECUTABLE(simplewallet)

View file

@ -95,7 +95,7 @@ bool gen_double_spend_in_tx<txs_kept_by_block>::generate(std::vector<test_event_
currency::transaction tx_1 = AUTO_VAL_INIT(tx_1);
std::vector<currency::attachment_v> attachments;
if (!construct_tx(bob_account.get_keys(), sources, destinations, attachments, tx_1, get_tx_version_from_events(events), uint64_t(0)))
if (!construct_tx(bob_account.get_keys(), sources, destinations, attachments, tx_1, this->get_tx_version_from_events(events), uint64_t(0)))
return false;
SET_EVENT_VISITOR_SETT(events, event_visitor_settings::set_txs_kept_by_block, txs_kept_by_block);

View file

@ -125,7 +125,7 @@ struct gen_tx_extra_double_entry : test_chain_unit_enchanced
{
gen_tx_extra_double_entry();
bool generate(std::vector<test_event_entry>& events) const;
bool gen_tx_extra_double_entry::configure_core(currency::core& c, size_t ev_index, const std::vector<test_event_entry>& events);
bool configure_core(currency::core& c, size_t ev_index, const std::vector<test_event_entry>& events);
};
struct gen_tx_double_key_image : test_chain_unit_enchanced

View file

@ -60,7 +60,7 @@ std::string get_random_rext(size_t len)
{
std::string buff(len/2, 0);
crypto::generate_random_bytes(len/2, (void*)buff.data());
return string_tools::buff_to_hex_nodelimer(buff);
return epst::buff_to_hex_nodelimer(buff);
}
bool run_core_market_performance_tests(uint64_t offers_amount)