Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ message(STATUS "CMake version ${CMAKE_VERSION}")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15 CACHE STRING "macOS deployment target (Apple clang only)")

project(beldex
VERSION 7.0.3
VERSION 7.0.4
LANGUAGES CXX C)
set(BELDEX_RELEASE_CODENAME "Obscura")

Expand Down
4 changes: 2 additions & 2 deletions src/cryptonote_core/tx_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ namespace cryptonote

if(tx.type == txtype::key_image_unlock)
{
if(hf_version >= hf::hf18_bns)
if(!opts.kept_by_block && hf_version >= hf::hf18_bns)
{
crypto::public_key mnode_key;
if (!cryptonote::get_master_node_pubkey_from_tx_extra(tx.extra, mnode_key))
Expand All @@ -274,7 +274,7 @@ namespace cryptonote
return false;

uint64_t block_height = m_blockchain.get_current_blockchain_height();
if (!m_blockchain.get_master_node_list().is_master_node(mnode_key))
if (!m_blockchain.get_master_node_list().is_master_node(mnode_key, /*require_active=*/false))
return false;
const master_nodes::master_node_info &node_info = m_blockchain.get_master_node_list().get_master_node_details(mnode_key);

Expand Down
1 change: 1 addition & 0 deletions src/rpc/core_rpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ namespace cryptonote::rpc {
auto db_size = db.get_database_size();
info.response["database_size"] = context.admin ? db_size : round_up(db_size, 1'000'000'000);
info.response["version"] = context.admin ? BELDEX_VERSION_FULL : std::to_string(BELDEX_VERSION[0]);
info.response["release_codename"] = BELDEX_RELEASE_NAME;
info.response["status_line"] = context.admin ? m_core.get_status_string() :
"v" + std::to_string(BELDEX_VERSION[0]) + "; Height: " + std::to_string(height);

Expand Down
1 change: 1 addition & 0 deletions src/rpc/core_rpc_server_commands_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ namespace cryptonote::rpc {
/// - `version` -- Current version of this daemon, as a string. For a public node this will just be
/// the major and minor version (e.g. "9"); for an admin rpc endpoint this will return the full
/// version (e.g. "9.2.1").
/// - `release_codename` -- Release codename of this daemon build (e.g. "Obscura").
/// - `status_line` -- A short one-line summary string of the node (requires an admin/unrestricted
/// connection for most details)
///
Expand Down
4 changes: 4 additions & 0 deletions tests/functional_tests/daemon_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def _test_get_info(self):
assert 'height' in res.keys()
assert res.height >= 1

# release codename should be provided as a non-empty string
assert 'release_codename' in res.keys()
assert isinstance(res.release_codename, str)
assert res.release_codename

if __name__ == '__main__':
DaemonGetInfoTest().run_test()
Loading