Skip to content
Open
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: 2 additions & 0 deletions src/cryptonote_core/master_node_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,8 @@ namespace master_nodes
master_node_info master_node_list::state_t::get_master_node_details(crypto::public_key mnode_key)
{
auto it = master_nodes_infos.find(mnode_key);
if (it == master_nodes_infos.end())
throw std::invalid_argument("get_master_node_details: master node not found");
return *it->second;
}

Expand Down
2 changes: 2 additions & 0 deletions src/cryptonote_core/tx_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ 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))
return false;
const master_nodes::master_node_info &node_info = m_blockchain.get_master_node_list().get_master_node_details(mnode_key);

for (const auto &contributor : node_info.contributors)
Expand Down