From 0fd9a3f0701e922beb7839f939675fecdb802a01 Mon Sep 17 00:00:00 2001 From: fekt Date: Sat, 5 Feb 2022 15:43:56 +0000 Subject: [PATCH] Update 'README.md' Payment processing information and cron for z_shieldcoinbase --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index eec1350..ac5cde8 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,14 @@ The pool fee is taken in the payment processor using this mode, and might not be ### Payment Processing Please note that the default configs generated are for solo mining. If you wish to create a public pool please modify the configs like in this [example config](https://github.com/z-classic/z-nomp/blob/master/pool_configs/komodo_example.json) +Because Hush enforces z-z transactions, in order for payment processing to work, you must shield coinbase first. The simplest way to do this is to setup a cron like the following, which will run `z_shieldcoinbase` every 10 minutes. + +``` +*/10 * * * * cd /home/hush3/src && ./hush-cli z_shieldcoinbase "tAddress-used-in-pool-config" "zAddress-used-in-pool-config" +``` + +You can adjust this based on your pool's paymentInterval. Alternatively, one could modify `./libs/paymentProcess.js` to use `z_shieldcoinbase` before attempting to perform the `z_sendmany` within the `sendTToZ` function. This is older code from Komodo ecosystem where z-z transactions were not enforced. + There is now a config option you can add to your pool_configs/coin.json to toggle making an attempt at a payment upon pool startup. ```