You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
414 B
26 lines
414 B
9 years ago
|
/*
|
||
|
* Stoppable
|
||
|
*/
|
||
|
contract Stoppable {
|
||
|
address public curator;
|
||
|
bool public stopped;
|
||
|
|
||
|
modifier stopInEmergency { if (!stopped) _ }
|
||
|
modifier onlyInEmergency { if (stopped) _ }
|
||
|
|
||
|
function Stoppable(address _curator) {
|
||
|
if (_curator == 0) {
|
||
|
throw;
|
||
|
}
|
||
|
curator = _curator;
|
||
|
}
|
||
|
|
||
|
function emergencyStop() external {
|
||
|
if (msg.sender != curator) {
|
||
|
throw;
|
||
|
}
|
||
|
stopped = true;
|
||
|
}
|
||
|
|
||
|
}
|