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