Giter Site home page Giter Site logo

forkmon's Introduction

Bitcoin Fork Monitor Website

This repo contains the source code for the https://www.btcforkmonitor.info

Building and testing locally

Install Python 3. Install all of the dependencies in the requirements.txt file.

For testing and debugging purposes, it may be easier to replace the lines in settings about the DATABASES with the following:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

Running

The first time you run this software, you will need to do some database preparation and setup. You will need to run the following commands first:

python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser

Then you can run the website with

python manage.py runserver

The website will be available at http://127.0.0.1:8000. The administration panel is available at http://127.0.0.1:8000/admin

The first time you run this, you will need to login to the admin panel and add some nodes, one block for each node, and the initial fork state.

Developing

Run the website with

python manage.py runserver

Any changes made to any of the file in this project will be automatically updated and reflected in the website by refreshing the web page.

Updating information from nodes

To update information from the nodes, you will need to specify RPC_USER and RPC_PASSWORD environment variables. These should match the rpcuser and rpcpassword that you have specified for your nodes. THe rpcuser and rpcpassword must be the same for all nodes. To update the database, run the following command:

python manage.py node_updates

modifying the updater

The updater command's logic is defined in monitor/node_updates.py.

License

This project is available under the MIT license. See the LICENSE file for more information.

forkmon's People

Contributors

achow101 avatar datasweeper avatar int3rlop3r avatar newbold avatar tarunbatra avatar unsystemizer avatar yuchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forkmon's Issues

Site not updating Stats

Your site isn't refreshing/displaying current blockchain/node stats, it's about 2 hrs behind now

Bitcoin ABC node information

At the bottom of the card it says that the node is down but it is at the correct block height when compared with other Bitcoin Cash nodes. It also says the chain has experienced a re-org but no details are given, as far as I am aware the chain has not experienced a re-org.

Very confusing / ambiguous wording: Has not forked but is behind other nodes?

Also this wording is confusing and ambiguous for each node:

Has not forked but is behind other nodes?: Yes

It is answered "Yes" for Bitcoin Cash... Bitcoin Cash has forked from Bitcoin but has not forked itself and yes it is currently behind other nodes. Hopefully this .info can add accurate information and not add to the widespread confusion with wordings like this....

How about breaking this into two questions:
Has it forked for other nodes? Yes or NO
Is it behind other nodes? Yes or No

[$50 Bounty] - SMS/Email alerts for btcforkmonitor.info

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I am setting a $50 bounty in bitcoin for the website to be updated with a sign up feature so that it is possible to receive SMS/Email alerts when there is a chain split or if a node has fallen behind.

Please check my github activity to see proof that I have followed through on bounties before.

@achow101

Robert
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJZc8WPAAoJEJ+aZHcytGXt2xMP/Rzik4ivFJQ6M7h/lE4NMRJz
Y99aOdYOCGfJLn8FqHv60K+uMCWnKVYkMvTg/Wpsz5sxqi0D8UJ3j5K3YZP/RRbo
rmucK1ajht6FGFiJ8FKKNzz+dvVCupt6WXWhFmMbm3KAKFvv8ffJfuzEdZpY1M8M
7anf2I4JxCaNkBzXSmD30DFXQpGpanfNZkKUrz7g2ByLp+Ha4JjdX1/H9pw29GrU
AQpl3hqdaNaIbC8XjGDYm+KIFDemHyDHYQE+1Iu54rztRXISA9PtDTTgoQ+wXnaI
WcepZtOlmEZraJp6I9R6NQJlBEJRPwD/74aR/oEf/kvX8Khwy/SjtblJOsUFoPCq
qgMZEA+terNnmbJQX07LcQyLzOiOS9viDjv8zL2BNOuUsko93ApnptqqXBM3A9MH
i4TtF0B1s/uxaYIBpc4c35xGcY15lNLFC2OS8/xnaMEjbO7vBaCYbzqTcTCPGksA
07uiL35ME5dUG3o5P4CFLWuDLzaK50Hky839TzWv4B4N29mCMRFyhU+y0n9tygnw
9AVIsNWQbmtXvVmxBaoV+h0c9bv/qMIZ1fzDX3v2oBQag0EzK+OOqoQB0Kvjn7m9
mDEmsoxnoC7G9fHJuFda/AygO2brMXvl8sCM5E5UqTIDzT4qF6geVUWrDKxIfGdn
VMHDUoIB+n7kKpRjrl4Q
=vKxf
-----END PGP SIGNATURE-----

Add how many blocks behind the main chain?

If the fork is behind - to the right of "Yes," you could show how many blocks behind it is of the main chain.

e.g. Bitcoin Cash is about 1250 blocks behind currently.

Is behind other nodes: Yes by 1250 blocks...

Thanks

bitcoin gold

the site already have info about the upcoming segwit2x fork but still have no info or the splitted and freezed bitcoin gold fork

UTC time with am/pm is confusing

Having AM/PM implies an association with a country that uses AM/PM, so its confusing. The norm for reporting UTC time is to use 24-hour time.

Doesn't seem to work

Hey there!

It's been nearly 12 hours since first cash block was mined, your website still doesn't see fork happening.

Connection timeout when fetching btcforkmonitor.info

> curl -vv https://www.btcforkmonitor.info/
*   Trying 34.231.32.174...
* TCP_NODELAY set
* Connected to www.btcforkmonitor.info (34.231.32.174) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: btcforkmonitor.info
* Server certificate: Amazon
* Server certificate: Amazon Root CA 1
* Server certificate: Starfield Services Root Certificate Authority - G2
> GET / HTTP/1.1
> Host: www.btcforkmonitor.info
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 408 REQUEST_TIMEOUT
< Content-Length:0
< Connection: Close
< 
* Closing connection 0

UASF-BIP148 doesn't stay blue

It briefly went blue with the message "This soft-fork's scheduled deadline has passed" but then it went back to green (despite still having a Median Time after midnight Aug 1 UTC).

Phantom chain split detected

btcforkmonitor.info currently says:

WARNING: A CHAIN SPLIT WAS DETECTED BUT HAS BEEN RE-ORGED.

However all 5 nodes also say

Has Experienced a Blockchain Reorganization: No

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.