readme
This commit is contained in:
parent
272c7a94e0
commit
55937915c4
14
README.md
14
README.md
@ -24,14 +24,10 @@ $ npx hardhat node --fork <https://eth-mainnet.alchemyapi.io/v2/API_KEY> --fork-
|
|||||||
$ npx hardhat test
|
$ npx hardhat test
|
||||||
```
|
```
|
||||||
|
|
||||||
## Checklist for batch size changing
|
|
||||||
|
|
||||||
find and replace the `CHUNK_TREE_HEIGHT = ` in following files
|
|
||||||
|
|
||||||
1. `circuits/BatchTreeUpdate.circom`
|
|
||||||
2. `contracts/TornadoTrees.sol`
|
|
||||||
3. `tornadoTrees.test.js`
|
|
||||||
|
|
||||||
## build large circuits
|
## build large circuits
|
||||||
|
|
||||||
1. docker build . -t tornadocash/tornado-trees
|
Make sure you have enough RAM
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build . -t tornadocash/tornado-trees
|
||||||
|
```
|
||||||
|
@ -7,6 +7,7 @@ import "./interfaces/ITornadoTreesV1.sol";
|
|||||||
import "./interfaces/IBatchTreeUpdateVerifier.sol";
|
import "./interfaces/IBatchTreeUpdateVerifier.sol";
|
||||||
import "@openzeppelin/upgrades-core/contracts/Initializable.sol";
|
import "@openzeppelin/upgrades-core/contracts/Initializable.sol";
|
||||||
|
|
||||||
|
/// @dev This contract holds a merkle tree of all tornado cash deposit and withdrawal events
|
||||||
contract TornadoTrees is Initializable {
|
contract TornadoTrees is Initializable {
|
||||||
address public immutable governance;
|
address public immutable governance;
|
||||||
bytes32 public depositRoot;
|
bytes32 public depositRoot;
|
||||||
@ -209,7 +210,7 @@ contract TornadoTrees is Initializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// @dev There is no array length getter for deposit and withdrawal arrays
|
/// @dev There is no array length getter for deposit and withdrawal arrays
|
||||||
/// in previous contract, so we have to find them length manually.
|
/// in the previous contract, so we have to find them length manually.
|
||||||
/// Used only during deployment
|
/// Used only during deployment
|
||||||
function findArrayLength(
|
function findArrayLength(
|
||||||
ITornadoTreesV1 _tornadoTreesV1,
|
ITornadoTreesV1 _tornadoTreesV1,
|
||||||
|
Loading…
Reference in New Issue
Block a user