Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidson-souza/taproot-monitor
Count how many blocks are signaling for taproot, during the activation window
https://github.com/davidson-souza/taproot-monitor
bitcoin soft-fork taproot
Last synced: 7 days ago
JSON representation
Count how many blocks are signaling for taproot, during the activation window
- Host: GitHub
- URL: https://github.com/davidson-souza/taproot-monitor
- Owner: Davidson-Souza
- License: mit
- Created: 2021-04-19T18:15:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-03T14:36:12.000Z (over 3 years ago)
- Last Synced: 2023-03-04T12:32:35.289Z (almost 2 years ago)
- Topics: bitcoin, soft-fork, taproot
- Language: JavaScript
- Homepage: http://taproottrace.ddns.net:8000/
- Size: 18.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Taproot Activation
## About
Taproot is a new softfork on bitcoin network that will enhance privace and scalability, as well power new novels of aplications on top of it### Methodology
We will subscribe to bitcoind ZMQ notification system, witch send a notification every time something happens. In our case, every time a new block is found. Check wether the block was mined inside the defined window and if is signaling (has a very specific bit set on the header).#### Data fetch
All the useful information will be exposed under a simple REST API, the returned data is a JSON as follow:
```
started - Does the window started?
ended - Does the window ended?
window - Return a JSON with the begin and end of the window in UNIX timestamp
count - The number of blocks with the bit set
windowTotal - How many blocks has been mined since the window started
leftToBeAssigned - How many blocks left into the window
leftToActivate - How many blocks left to reach the threshold
```
## Install
The program needs a Bitcoin Core (or any full node) synchronized with the network - prune is fine - with the ZMQ's `pushblockhash` option enabled. Also you need a instance of `nodejs` and `npm` installed, see [here](https://nodejs.org/en/).
After setting up the core, you need clone the repository with:
```
git clone https://github.com/Davidson-Souza/taproot-monitor.git
cd taproot-monitor
```
Then install the required packages with `npm`
```
npm install --save
```
Finaly, just run
```
npm start
```
If your bitcoind has different settings, like port or password follow the steps bellow:
```
cp .env_sample .env
nano .env
```
Edit the `.env` file uncommenting what you need set by removing the `#`, as well inserting the proper informations. After that you can run with the `npm start` as above.