diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-09 12:06:24 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-25 15:48:13 +0100 |
| commit | b5faac530420468032355cd52d329761c7199588 (patch) | |
| tree | 67882857955c5b68f62ad0a54588968c55a43678 /tests/core_proxy/core_proxy.cpp | |
| parent | 2e44d8f23c4b09f40d317fd0b56d445c4d04abd3 (diff) | |
| download | monzero-core-b5faac530420468032355cd52d329761c7199588.tar.gz monzero-core-b5faac530420468032355cd52d329761c7199588.tar.xz monzero-core-b5faac530420468032355cd52d329761c7199588.zip | |
get_blockchain_top now returns void
It was always returning true, and could not be foreseen to
usefully return errors in the future. This silences CID 162652
as well as saves some checking code in a few places.
Diffstat (limited to 'tests/core_proxy/core_proxy.cpp')
| -rw-r--r-- | tests/core_proxy/core_proxy.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/core_proxy/core_proxy.cpp b/tests/core_proxy/core_proxy.cpp index 366937e1d..aea810a11 100644 --- a/tests/core_proxy/core_proxy.cpp +++ b/tests/core_proxy/core_proxy.cpp @@ -229,10 +229,9 @@ bool tests::proxy_core::get_short_chain_history(std::list<crypto::hash>& ids) { return true; } -bool tests::proxy_core::get_blockchain_top(uint64_t& height, crypto::hash& top_id) { +void tests::proxy_core::get_blockchain_top(uint64_t& height, crypto::hash& top_id) { height = 0; top_id = get_block_hash(m_genesis); - return true; } bool tests::proxy_core::init(const boost::program_options::variables_map& /*vm*/) { |
