<commit_before># Bitcoin Mempool Statistics

This is the code to create the mempool statistics for bitcoin that are online
at https://jochen-hoenicke.de/queue/

## Installation: Part 1 - Logging

You need to be running a bitcoin full node.  It can be a pruned node or an
archival node.  I assume you have already set it up.  You also need to
support RPC to this node.  Add rpcuser/rpcpassword to bitcoin.conf to enable
this.

I recommend to create a new user `mempool`.   Checkout this repository into
his home directory:

    sudo -H -u mempool bash
    cd $HOME
    git clone https://github.com/jhoenicke/mempool

Edit `mempool.sh` to adapt paths as necessary, especially the path to 
bitcoin-cli.  Add a bitcoin.conf with rpcuser/rpcpassword settings to 
`/home/mempool/.bitcoin`, to be able to use bitcoin-cli.  You can test your
setup by running

    bitcoin-cli getinfo<commit_msg>getinfo is deprecated<commit_after># Bitcoin Mempool Statistics

This is the code to create the mempool statistics for bitcoin that are online
at https://jochen-hoenicke.de/queue/

## Installation: Part 1 - Logging

You need to be running a bitcoin full node.  It can be a pruned node or an
archival node.  I assume you have already set it up.  You also need to
support RPC to this node.  Add rpcuser/rpcpassword to bitcoin.conf to enable
this.

I recommend to create a new user `mempool`.   Checkout this repository into
his home directory:

    sudo -H -u mempool bash
    cd $HOME
    git clone https://github.com/jhoenicke/mempool

Edit `mempool.sh` to adapt paths as necessary, especially the path to 
bitcoin-cli.  Add a bitcoin.conf with rpcuser/rpcpassword settings to 
`/home/mempool/.bitcoin`, to be able to use bitcoin-cli.  You can test your
setup by running

    bitcoin-cli getmempoolinfo
{'fraction_non_alphanumeric': 0.05925097820011179, 'fraction_numerical': 0.0011179429849077697, 'mean_word_length': 3.55470737913486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3885769', 'n_tokens_mistral': 553, 'n_tokens_neox': 523, 'n_words': 255}