mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-03 06:44:56 -04:00
add pause account setter
This commit is contained in:
parent
e116dcee67
commit
3b03a5ea4c
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue