mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-13 00:47:05 +02:00
net: define NodeId as an int64_t
This should make occurances of NodeId wrapping essentially impossible for real-world usage.
This commit is contained in:
@ -1118,7 +1118,7 @@ void RPCConsole::disconnectSelectedNode()
|
||||
for(int i = 0; i < nodes.count(); i++)
|
||||
{
|
||||
// Get currently selected peer address
|
||||
NodeId id = nodes.at(i).data().toInt();
|
||||
NodeId id = nodes.at(i).data().toLongLong();
|
||||
// Find the node, disconnect it and clear the selected node
|
||||
if(g_connman->DisconnectNode(id))
|
||||
clearSelectedNode();
|
||||
@ -1135,7 +1135,7 @@ void RPCConsole::banSelectedNode(int bantime)
|
||||
for(int i = 0; i < nodes.count(); i++)
|
||||
{
|
||||
// Get currently selected peer address
|
||||
NodeId id = nodes.at(i).data().toInt();
|
||||
NodeId id = nodes.at(i).data().toLongLong();
|
||||
|
||||
// Get currently selected peer address
|
||||
int detailNodeRow = clientModel->getPeerTableModel()->getRowByNodeId(id);
|
||||
|
Reference in New Issue
Block a user