From 8b17cb48975596774a85c629987a73ec8bc61c58 Mon Sep 17 00:00:00 2001 From: KVAZAR <88580090+kvazar-network@users.noreply.github.com> Date: Sun, 24 Apr 2022 19:42:57 +0300 Subject: [PATCH 1/7] fix connection check --- crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawler.php b/crawler.php index 4e068ca..b77bb2b 100644 --- a/crawler.php +++ b/crawler.php @@ -19,7 +19,7 @@ if (false !== sem_acquire($semaphore, 1)) { $blockLast = $db->getLastBlock(); $blockTotal = $kevaCoin->getblockcount(); - if (!$blockTotal) { + if (false === $blockTotal) { echo "API connection error.\n"; exit; } From 1d98ad8d10583277f3517eaf2f1ca707874e53a2 Mon Sep 17 00:00:00 2001 From: KVAZAR <88580090+kvazar-network@users.noreply.github.com> Date: Sun, 24 Apr 2022 20:09:21 +0300 Subject: [PATCH 2/7] add requirements --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 80cb8ee..f9ef343 100644 --- a/README.md +++ b/README.md @@ -1 +1,10 @@ -# crawler-full-node \ No newline at end of file +# crawler-full-node + +### requirements +``` +php-7.4 +php-curl +php-mbstring +php-mysql +php-bcmath +``` From 8817e8e81dd3c05ecb3faea83b0cc741cc70fbb7 Mon Sep 17 00:00:00 2001 From: KVAZAR <88580090+kvazar-network@users.noreply.github.com> Date: Sun, 24 Apr 2022 20:23:56 +0300 Subject: [PATCH 3/7] Update README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index f9ef343..b754b3a 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,30 @@ php-mbstring php-mysql php-bcmath ``` + +#### database: + +https://github.com/kvazar-network/database + +#### kevacoind + +https://github.com/kevacoin-project/kevacoin + +#### kevacoin.conf + +``` +rpcuser=user +rpcpassword=password +rpcport=9992 +server=1 +addressindex=1 +txindex=1 +rpcallowip=127.0.0.1 +whitelist=127.0.0.1 +``` + +#### crontab +``` +@reboot /path-to/kevacoind -daemon > /dev/null 2>&1 +* * * * * /path-to/kevacoind -daemon > /dev/null 2>&1 +``` From 961141c0b50968f44b2a1bfa8e6da693f0404dbb Mon Sep 17 00:00:00 2001 From: KVAZAR <88580090+kvazar-network@users.noreply.github.com> Date: Sun, 24 Apr 2022 20:24:21 +0300 Subject: [PATCH 4/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b754b3a..7c565ac 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ php-mysql php-bcmath ``` -#### database: +#### database https://github.com/kvazar-network/database From de26d3707fcac77517c643264f0aa7cc07c00f35 Mon Sep 17 00:00:00 2001 From: KVAZAR <88580090+kvazar-network@users.noreply.github.com> Date: Sun, 24 Apr 2022 20:27:15 +0300 Subject: [PATCH 5/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7c565ac..b2bee3e 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,6 @@ whitelist=127.0.0.1 #### crontab ``` -@reboot /path-to/kevacoind -daemon > /dev/null 2>&1 -* * * * * /path-to/kevacoind -daemon > /dev/null 2>&1 +@reboot /path-to/kevacoind > /dev/null 2>&1 +* * * * * /path-to/kevacoind > /dev/null 2>&1 ``` From bc406120dd129b7c896c86d03d6c252aa232ec2c Mon Sep 17 00:00:00 2001 From: KVAZAR <88580090+kvazar-network@users.noreply.github.com> Date: Sun, 24 Apr 2022 20:28:42 +0300 Subject: [PATCH 6/7] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b2bee3e..c74186d 100644 --- a/README.md +++ b/README.md @@ -34,4 +34,5 @@ whitelist=127.0.0.1 ``` @reboot /path-to/kevacoind > /dev/null 2>&1 * * * * * /path-to/kevacoind > /dev/null 2>&1 +* * * * * /path-to/php /path-to/crawler-full-node/crawler.php ``` From f935dcea1aa252b563ef9548719dd8250fb3743b Mon Sep 17 00:00:00 2001 From: KVAZAR <88580090+kvazar-network@users.noreply.github.com> Date: Sun, 1 May 2022 00:58:44 +0300 Subject: [PATCH 7/7] update crontab tasks --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c74186d..26f96f9 100644 --- a/README.md +++ b/README.md @@ -34,5 +34,5 @@ whitelist=127.0.0.1 ``` @reboot /path-to/kevacoind > /dev/null 2>&1 * * * * * /path-to/kevacoind > /dev/null 2>&1 -* * * * * /path-to/php /path-to/crawler-full-node/crawler.php +* * * * * /path-to/php /path-to/crawler-full-node/crawler.php > /dev/null 2>&1 ```