mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
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:
parent
2e44d8f23c
commit
b5faac5304
6 changed files with 9 additions and 31 deletions
|
@ -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*/) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue