- Install virtualenv:
sudo pip install virtualenv
- Clone the repo or a fork of it
- Navigate to the base repo directory and run:
virtualenv env
- Activate your virtual environment:
source env/bin/activate
- Install the requirements:
pip install -r requirements.txt
The following steps cause a stream of transactions to be logged to the location specified in the DUMP_FILE_PATH constant in main.py. The default message handlers are:
- PrintHandler: Prints incoming tx to console
- FileHandler: Writes incoming tx to file
-
Start SSH Tunnel:
ssh -N -L 28332:localhost:28332 <ordinarb>
-
Run main.py:
python main.py
Or simply ./run_mempool_analyzer.sh