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.
This commit is contained in:
moneromooo-monero 2017-09-09 12:06:24 +01:00
parent 2e44d8f23c
commit b5faac5304
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
6 changed files with 9 additions and 31 deletions

View file

@ -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*/) {