Browse Source

Merge pull request #1 from kvazar-network/master

Merge latest updates from the 'master' branch
sqlite
d47081 2 years ago committed by GitHub
parent
commit
8cfc17bd25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 39
      README.md
  2. 2
      crawler.php

39
README.md

@ -1 +1,38 @@ @@ -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
```

2
crawler.php

@ -19,7 +19,7 @@ if (false !== sem_acquire($semaphore, 1)) { @@ -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;
}

Loading…
Cancel
Save