Merge pull request #1 from kvazar-network/master

Merge latest updates from the 'master' branch
This commit is contained in:
d47081 2022-07-15 10:57:16 +03:00 committed by GitHub
commit 8cfc17bd25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 2 deletions

View File

@ -1 +1,38 @@
# crawler-full-node
# crawler-full-node
### requirements
```
php-7.4
php-curl
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 > /dev/null 2>&1
* * * * * /path-to/kevacoind > /dev/null 2>&1
* * * * * /path-to/php /path-to/crawler-full-node/crawler.php > /dev/null 2>&1
```

View File

@ -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;
}