@@ -35,7 +35,7 @@ contract WorkerPool is OwnableOZ, IexecHubAccessor // Owned by a S(w)
35
35
/**
36
36
* Address of slave/related contracts
37
37
*/
38
- address public m_workersAuthorizedListAddress;
38
+ address public m_workersAuthorizedListAddress;
39
39
address private m_workerPoolHubAddress;
40
40
41
41
modifier onlyWorkerPoolHub ()
@@ -72,25 +72,22 @@ contract WorkerPool is OwnableOZ, IexecHubAccessor // Owned by a S(w)
72
72
m_workerPoolStatus = WorkerPoolStatusEnum.OPEN;
73
73
m_workerPoolHubAddress = msg .sender ;
74
74
75
- /* cannot do the following AuthorizedList contracts creation because of :
75
+ /*
76
+ cannot do the following AuthorizedList contracts creation because of :
76
77
VM Exception while processing transaction: out of gas at deploy.
77
78
use attach....AuthorizedListContract instead function
78
79
*/
79
- /*
80
- workersAuthorizedListAddress = new AuthorizedList();
81
- AuthorizedList(workersAuthorizedListAddress).transferOwnership(tx.origin); // owner → tx.origin
80
+
81
+ m_workersAuthorizedListAddress = new AuthorizedList (AuthorizedList.ListPolicyEnum.WHITELIST);
82
+ AuthorizedList (m_workersAuthorizedListAddress).transferOwnership (tx .origin ); // owner → tx.origin
83
+ /*
82
84
dappsAuthorizedListAddress = new AuthorizedList();
83
85
AuthorizedList(dappsAuthorizedListAddress).transferOwnership(tx.origin); // owner → tx.origin
84
86
requesterAuthorizedListAddress = new AuthorizedList();
85
87
AuthorizedList(requesterAuthorizedListAddress).transferOwnership(tx.origin); // owner → tx.origin
86
88
*/
87
89
}
88
90
89
- function attachWorkerPoolsAuthorizedListContract (address _workerPoolsAuthorizedListAddress ) public onlyOwner
90
- {
91
- m_workersAuthorizedListAddress = _workerPoolsAuthorizedListAddress;
92
- }
93
-
94
91
function changeWorkerPoolPolicy (
95
92
uint256 _newStakeRatioPolicy ,
96
93
uint256 _newSchedulerRewardRatioPolicy ,
@@ -168,6 +165,8 @@ contract WorkerPool is OwnableOZ, IexecHubAccessor // Owned by a S(w)
168
165
}
169
166
*/
170
167
168
+
169
+
171
170
function switchOnOff (bool onoff ) public onlyIexecHub /*for staking management*/ returns (bool )
172
171
{
173
172
if (onoff){
0 commit comments