mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-02-14 21:10:43 +01:00
add pause account setter
This commit is contained in:
parent
e116dcee67
commit
3b03a5ea4c
@ -80,6 +80,11 @@ contract Mixer is MerkleTreeWithHistory {
|
|||||||
isDepositsEnabled = !isDepositsEnabled;
|
isDepositsEnabled = !isDepositsEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setPauseAccount(address _newAccount) external {
|
||||||
|
require(msg.sender == pauseAccount, "unauthorized");
|
||||||
|
pauseAccount = _newAccount;
|
||||||
|
}
|
||||||
|
|
||||||
function isSpent(uint256 nullifier) public view returns(bool) {
|
function isSpent(uint256 nullifier) public view returns(bool) {
|
||||||
return nullifierHashes[nullifier];
|
return nullifierHashes[nullifier];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user