mirror of
https://github.com/kvazar-network/crawler-full-node.git
synced 2025-01-22 04:45:12 +00:00
Merge pull request #1 from kvazar-network/master
Merge latest updates from the 'master' branch
This commit is contained in:
commit
8cfc17bd25
39
README.md
39
README.md
@ -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
|
||||
```
|
||||
|
@ -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…
x
Reference in New Issue
Block a user