masternodes / vps

A handy bash script to setup crypto masternodes in no time. Initially developed for $PIVX. Now many more ;-)
https://masternodes.github.io/vps/
GNU General Public License v3.0
250 stars 489 forks source link

implement a simple masternode status checker #16

Open marsmensch opened 7 years ago

marsmensch commented 7 years ago

idea like mnchecker, but not that over-engineered

marsmensch commented 6 years ago

https://github.com/dashpay/sentinel https://www.vivocrypto.com/vivo-technologies/masternodes/sentinel-guide/ https://bitcointalk.org/index.php?topic=2110690.1300 https://github.com/dashpay/sentinel/compare/master...ZonnCash:master https://github.com/ZonnCash/sentinel

marsmensch commented 6 years ago

http://innovacoin.info/masternode-guides/sentinel-guide/

Dizz888 commented 6 years ago

http://innovacoin.info/masternode-guides/sentinel-guide/

it is impossible to put on this instrument

root@vultr:~/sentinel# venv/bin/python bin/sentinel.py dashd not synced with network! Awaiting full sync before running Sentinel.

How can this be? why it is requested dashd?

all the master nodes are now in the status WATCHDOG_EXPIRED

I suspect that it is necessary to install sentinel But I can not install according to this instruction

Dizz888 commented 6 years ago
root@vultr:~/sentinel# ./venv/bin/py.test ./test
======================================================================= test session starts =======================================================================
platform linux2 -- Python 2.7.12, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /root/sentinel, inifile:
collected 14 items / 2 errors

============================================================================= ERRORS ==============================================================================
_______________________________________________________ ERROR collecting test/unit/models/test_proposals.py _______________________________________________________
test/unit/models/test_proposals.py:10: in <module>
    from models import GovernanceObject, Proposal, Vote
lib/models.py:5: in <module>
    import init
lib/init.py:103: in <module>
    main()
lib/init.py:100: in main
    sys.exit(1)
E   SystemExit: 1
------------------------------------------------------------------------- Captured stdout -------------------------------------------------------------------------
[Errno 2] No such file or directory: '/root/.dashcore/dash.conf'
DashCore must be installed and configured, including JSONRPC access in dash.conf
______________________________________________________ ERROR collecting test/unit/models/test_superblocks.py ______________________________________________________
test/unit/models/test_superblocks.py:10: in <module>
    from models import GovernanceObject, Proposal, Superblock, Vote
lib/models.py:5: in <module>
    import init
lib/init.py:103: in <module>
    main()
lib/init.py:100: in main
    sys.exit(1)
E   SystemExit: 1
------------------------------------------------------------------------- Captured stdout -------------------------------------------------------------------------
[Errno 2] No such file or directory: '/root/.dashcore/dash.conf'
DashCore must be installed and configured, including JSONRPC access in dash.conf
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
===================================================================== 2 error in 0.66 seconds =====================================================================
root@vultr:~/sentinel#

why he refers to '/root/.dashcore/dash.conf ? How can I fix this?

cryptalt commented 6 years ago

What's overengineered about mnchecker? https://github.com/Aziroshin/mnchecker/blob/master/mnchecker

About 40% of it is grace period calculation since it doesn't use a hard-coded explorer link to determine if your chain is stale. About another 40% error handling and function boiler plate which could be trimmed.

Doesn't seem that as -is it would be very hard to parameterize for your install script.