You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/RocketHub.sol
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -198,12 +198,12 @@ contract RocketHub is Owned {
198
198
function setRocketNodeCheckin(addressnodeAddress, uint256averageLoad, uint256lastCheckin) publiconlyRegisteredNode(nodeAddress) onlyLatestRocketPool {
199
199
nodes[nodeAddress].averageLoad = averageLoad;
200
200
nodes[nodeAddress].lastCheckin = lastCheckin;
201
-
}
201
+
}
202
202
203
203
/// @dev Rocket Pool can manually/automatically deactivate a node if it is down or running badly (high load), this will stop the node accepting new pools to be assigned to it
204
204
function setRocketNodeActive(addressnodeAddress, boolactivate) publiconlyRegisteredNode(nodeAddress) onlyLatestRocketPool {
205
205
nodes[nodeAddress].active = activate;
206
-
}
206
+
}
207
207
208
208
/// @dev Removes a node from storage
209
209
/// @param nodeAddressToRemove The node to remove.
@@ -247,7 +247,7 @@ contract RocketHub is Owned {
247
247
nodes[nodeAddress].active,
248
248
nodes[nodeAddress].exists
249
249
);
250
-
}
250
+
}
251
251
252
252
/// @dev Checks to see if the current node address is a legit registered Rocket Node
253
253
/// @param nodeAccountAddress The registered rocket node address.
@@ -264,27 +264,27 @@ contract RocketHub is Owned {
264
264
return nodeAddresses[addressIndex];
265
265
}
266
266
throw;
267
-
}
267
+
}
268
268
269
269
/// @dev Returns the amount of registered rocket nodes
270
270
function getRocketNodeCount() publicconstantreturns(uint) {
271
271
return nodeAddresses.length;
272
-
}
272
+
}
273
273
274
274
/// @dev Return the average server work load for this node
275
275
function getRocketNodeAverageLoad(addressnodeAddress) publicconstantonlyRegisteredNode(nodeAddress) returns(uint256) {
276
276
return nodes[nodeAddress].averageLoad;
277
-
}
277
+
}
278
278
279
279
/// @dev Return the last time this node checked in with the main Rocket Pool
280
280
function getRocketNodeLastCheckin(addressnodeAddress) publicconstantonlyRegisteredNode(nodeAddress) returns(uint256) {
281
281
return nodes[nodeAddress].lastCheckin;
282
-
}
282
+
}
283
283
284
284
/// @dev Return the active status of this node, if deactivated it will not accept new mini pools
285
285
function getRocketNodeActive(addressnodeAddress) publicconstantonlyRegisteredNode(nodeAddress) returns(bool) {
286
286
return nodes[nodeAddress].active;
287
-
}
287
+
}
288
288
289
289
290
290
/**** Mini Pool Storage ***************/
@@ -338,7 +338,7 @@ contract RocketHub is Owned {
338
338
/// @dev Returns a single rocket mini pool at the pool address
339
339
function getRocketMiniPool(addressminiPoolAddress) publicconstantonlyRegisteredPool(miniPoolAddress) returns(address, bool) {
0 commit comments