Skip to content

Commit

Permalink
#1702 renamed owner to nodeAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Nov 6, 2023
1 parent 3815c22 commit ee9c48a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libethcore/ChainOperationParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct GroupNode {
u256 id;
u256 schainIndex;
std::string publicKey;
std::string owner;
std::string address;
};

/// skale
Expand Down
4 changes: 2 additions & 2 deletions libethereum/ChainParams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ ChainParams ChainParams::loadConfig(
u256 sChainIndex = groupNodeConfObj[0].get_uint64();
u256 id = groupNodeConfObj[1].get_uint64();
std::string publicKey = groupNodeConfObj[2].get_str();
std::string owner = groupNodeConfObj[3].get_str();
groupNodes.push_back( { id, sChainIndex, publicKey, owner } );
std::string address = groupNodeConfObj[3].get_str();
groupNodes.push_back( { id, sChainIndex, publicKey, address } );
}
std::sort( groupNodes.begin(), groupNodes.end(),
[]( const GroupNode& lhs, const GroupNode& rhs ) {
Expand Down
2 changes: 1 addition & 1 deletion libethereum/Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class Client : public ClientBase, protected Worker {

// get node owner for historic node in chain
std::string getHistoricNodeOwner( unsigned _idx ) const {
return chainParams().sChain.nodeGroups[historicGroupIndex].nodes[_idx].owner;
return chainParams().sChain.nodeGroups[historicGroupIndex].nodes[_idx].address;
}

void doStateDbCompaction() const { m_state.getOriginalDb()->doCompaction(); }
Expand Down

0 comments on commit ee9c48a

Please sign in to comment.