lightning-node-management

Pool usage notes

Read through the documentation and the resources below.

The best place to search for commands and keywords: https://lightning.engineering/poolapi

Follow https://twitter.com/LightningPool for an (unofficial) list of past batches and curated content.

The Pool install script for the RaspiBlitz is in this PR:

# download
wget https://raw.githubusercontent.com/openoms/raspiblitz/pool/home.admin/config.scripts/bonus.pool.sh
# inspect the script
cat bonus.pool.sh
# install
bash bonus.pool.sh on

clearing_price_rate

The uniform clearing price rate in parts per billion of the batch. It equals to the lowest included bid rate in the batch.

ratings

Returns the current Node Tier of a node, along with other information.

By default nodes listed in the Bos Score list are used to fill the bids, called TIER_1 in the ratings. They are shortlisted according to: up time, inbound capacity, history, channel updates, ability to actively route (via probing).

nextbatchinfo

Returns information about the next batch the auctioneer will perform.

Shows:

$ pool auction nextbatchinfo

Example:

{
    "conf_target": 35,
    "fee_rate_sat_per_kw": "27714",
    "clear_timestamp": "1604406782"
}

For your order to be included in the next batch the fee_rate_sat_per_kw should be above the cut off value.

List the fee_rate_sat_per_kw of your orders with:

$ pool orders list | grep fee_rate_sat_per_kw

auction snapshot

Returns information about a prior batch such as the clearing price and the set of orders included in the batch. The prev_batch_id field can be used to explore prior batches in the sequence, similar to a block chain.

last batch info:
$ pool auction snapshot

query the prior batches recursively:

# get the previous batch id
prev_batch_id=$(pool auc s |jq -r '.prev_batch_id')

# show the prior batch (just repeat the line to show the past batches)
prev_batch_id=$(pool auc s --batch_id $prev_batch_id|jq -r '.prev_batch_id') && pool auc s --batch_id $prev_batch_id

# show only the clearing price of the prior batch recursively:
prev_batch_id=$(pool auc s --batch_id $prev_batch_id|jq -r '.prev_batch_id') && pool auc s --batch_id $prev_batch_id|jq -r '.clearing_price_rate'

Search the txid of a batch on http://1ml.com after it is confirmed (channels opened and published) to see the details of the channels and peers involved. https://twitter.com/openoms/status/1326482404224229376

logs

Monitor the pool logs in: /home/pool/.pool/logs/mainnet/poold.log

Example:

tail -f -n 1000 /home/pool/.pool/logs/mainnet/poold.log

Resources