Skip to content

Commit a367220

Browse files
author
David Rugendyke
committed
Updated code formatting
1 parent 3fda63c commit a367220

2 files changed

Lines changed: 14 additions & 15 deletions

File tree

contracts/RocketHub.sol

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ contract RocketHub is Owned {
198198
function setRocketNodeCheckin(address nodeAddress, uint256 averageLoad, uint256 lastCheckin) public onlyRegisteredNode(nodeAddress) onlyLatestRocketPool {
199199
nodes[nodeAddress].averageLoad = averageLoad;
200200
nodes[nodeAddress].lastCheckin = lastCheckin;
201-
}
201+
}
202202

203203
/// @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
204204
function setRocketNodeActive(address nodeAddress, bool activate) public onlyRegisteredNode(nodeAddress) onlyLatestRocketPool {
205205
nodes[nodeAddress].active = activate;
206-
}
206+
}
207207

208208
/// @dev Removes a node from storage
209209
/// @param nodeAddressToRemove The node to remove.
@@ -247,7 +247,7 @@ contract RocketHub is Owned {
247247
nodes[nodeAddress].active,
248248
nodes[nodeAddress].exists
249249
);
250-
}
250+
}
251251

252252
/// @dev Checks to see if the current node address is a legit registered Rocket Node
253253
/// @param nodeAccountAddress The registered rocket node address.
@@ -264,27 +264,27 @@ contract RocketHub is Owned {
264264
return nodeAddresses[addressIndex];
265265
}
266266
throw;
267-
}
267+
}
268268

269269
/// @dev Returns the amount of registered rocket nodes
270270
function getRocketNodeCount() public constant returns(uint) {
271271
return nodeAddresses.length;
272-
}
272+
}
273273

274274
/// @dev Return the average server work load for this node
275275
function getRocketNodeAverageLoad(address nodeAddress) public constant onlyRegisteredNode(nodeAddress) returns(uint256) {
276276
return nodes[nodeAddress].averageLoad;
277-
}
277+
}
278278

279279
/// @dev Return the last time this node checked in with the main Rocket Pool
280280
function getRocketNodeLastCheckin(address nodeAddress) public constant onlyRegisteredNode(nodeAddress) returns(uint256) {
281281
return nodes[nodeAddress].lastCheckin;
282-
}
282+
}
283283

284284
/// @dev Return the active status of this node, if deactivated it will not accept new mini pools
285285
function getRocketNodeActive(address nodeAddress) public constant onlyRegisteredNode(nodeAddress) returns(bool) {
286286
return nodes[nodeAddress].active;
287-
}
287+
}
288288

289289

290290
/**** Mini Pool Storage ***************/
@@ -338,7 +338,7 @@ contract RocketHub is Owned {
338338
/// @dev Returns a single rocket mini pool at the pool address
339339
function getRocketMiniPool(address miniPoolAddress) public constant onlyRegisteredPool(miniPoolAddress) returns(address, bool) {
340340
return (pools[miniPoolAddress].poolContractAddress, pools[miniPoolAddress].exists);
341-
}
341+
}
342342

343343
/// @dev Checks to see if the current pool address is a legit registered Rocket Mini Pool
344344
/// @param miniPoolAddress The registered rocket mini pool address.
@@ -355,12 +355,12 @@ contract RocketHub is Owned {
355355
return miniPoolAddresses[addressIndex];
356356
}
357357
throw;
358-
}
358+
}
359359

360360
/// @dev Returns the amount of registered rocket nodes
361361
function getRocketMiniPoolCount() public constant returns(uint) {
362362
return miniPoolAddresses.length;
363-
}
363+
}
364364

365365

366366
/**** Partner Storage ***************/
@@ -425,7 +425,7 @@ contract RocketHub is Owned {
425425
/// @dev Returns the amount of registered rocket partners
426426
function getRocketPartnerCount() public constant returns(uint) {
427427
return partnerAddresses.length;
428-
}
428+
}
429429

430430

431431
}

contracts/RocketPool.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ contract RocketPool is Owned {
181181
// Nodes
182182
nodeSetInactiveAutomatic = true;
183183
nodeSetInactiveDuration = 1 hours;
184-
}
184+
}
185185

186186
/// @dev Set the min eth required for a node to be registered
187187
/// @param amountInWei The amount in Wei
@@ -704,7 +704,7 @@ contract RocketPool is Owned {
704704
}else{
705705
throw;
706706
}
707-
}
707+
}
708708

709709

710710
/// @dev Get an available node for a pool to be assigned too
@@ -847,5 +847,4 @@ contract RocketPool is Owned {
847847
return valueArray;
848848
}
849849

850-
851850
}

0 commit comments

Comments
 (0)