diff options
| author | Cory Fields <[email protected]> | 2017-04-10 15:00:23 -0400 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-04-14 10:35:49 +0200 |
| commit | 30fa231011a63404a087420a9de7271af077affa (patch) | |
| tree | c719ebdc883edf98ae982994b76104432e38e64e /src/qt/rpcconsole.cpp | |
| parent | [rpc] rename disconnectnode argument (diff) | |
| download | discoin-30fa231011a63404a087420a9de7271af077affa.tar.xz discoin-30fa231011a63404a087420a9de7271af077affa.zip | |
net: define NodeId as an int64_t
This should make occurances of NodeId wrapping essentially impossible for
real-world usage.
Github-Pull: #10176
Rebased-From: c851be4b25905977ca471c42435dc590fd2ff2f5
Diffstat (limited to 'src/qt/rpcconsole.cpp')
| -rw-r--r-- | src/qt/rpcconsole.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 001f19926..77e5e03e6 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -1115,7 +1115,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(); @@ -1132,7 +1132,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); |