|
|
3 年之前 | |
|---|---|---|
| .github | 3 年之前 | |
| abis | 4 年之前 | |
| cache | 4 年之前 | |
| keys | 4 年之前 | |
| monitoring | 3 年之前 | |
| src | 3 年之前 | |
| test | 3 年之前 | |
| .dockerignore | 5 年之前 | |
| .editorconfig | 5 年之前 | |
| .env.example | 4 年之前 | |
| .eslintrc.json | 5 年之前 | |
| .gitignore | 4 年之前 | |
| .prettierignore | 5 年之前 | |
| .prettierrc | 5 年之前 | |
| Dockerfile | 4 年之前 | |
| README.md | 3 年之前 | |
| app.js | 3 年之前 | |
| docker-compose.test.yml | 3 年之前 | |
| docker-compose.yml | 4 年之前 | |
| package.json | 3 年之前 | |
| yarn.lock | 3 年之前 |
docker-compose.yml contains a stack that will automatically provision SSL certificates for your domain name and will add a https redirect to port 80.
wget https://raw.githubusercontent.com/tornadocash/tornado-relayer/master/docker-compose.yml
wget https://raw.githubusercontent.com/tornadocash/tornado-relayer/master/.env.example -O .env
Setup environment variables
NET_ID (1 for mainnet, 5 for Goerli)HTTP_RPC_URL rpc url for your ethereum nodeWS_RPC_URL websocket urlORACLE_RPC_URL - rpc url for mainnet node for fetching prices(always have to be on mainnet)PRIVATE_KEY for your relayer address (without 0x prefix)VIRTUAL_HOST and LETSENCRYPT_HOST to your domain and add DNS record pointing to your relayer ip addressREGULAR_TORNADO_WITHDRAW_FEE - fee in % that is used for tornado pool withdrawalsMINING_SERVICE_FEE - fee in % that is used for mining AP withdrawalsREWARD_ACCOUNT - eth address that is used to collect feesAGGREGATOR if needed - Contract address of aggregator instance.CONFIRMATIONS if needed - how many block confirmations to wait before processing an event. Not recommended to set less than 3MAX_GAS_PRICE if needed - maximum value of gwei value for relayer's transactionBASE_FEE_RESERVE_PERCENTAGE if needed - how much in % will the network baseFee increaseIf you want to use more than 1 eth address for relaying transactions, please add as many workers as you want. For example, you can comment out worker2 in docker-compose.yml file, but please use a different PRIVATE_KEY for each worker.
Run docker-compose up -d
yarncp .env.example .env.env as neededyarn starthttp://127.0.0.1:8000curl -X POST -H 'content-type:application/json' --data '<input data>' http://127.0.0.1:8000/relay
Relayer should return a transaction hash
In that case you will need to add https termination yourself because browsers with default settings will prevent https tornado.cash UI from submitting your request over http connection
It is strongly recommended that you use your own RPC node. Instruction on how to run full node with geth can be found here.
You can find the guide on how to install the Zabbix server in the /monitoring/README.md.
treeUpdate event to redis pub/sub channelDisclaimer:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.