This gist contains a script for marking expired tickets in a node's DB so the node does not continuously try to redeem tickets that have expired. This will be fixed in the node in an upcoming release, but for now you can use this script to address this issue.
First, make sure you have sqlite3
installed. You can check by running which sqlite3
and if there is a path returned you have sqlite3
installed. If you do not have sqlite3
installed:
- OSX:
brew install sqlite3
- Ubuntu:
apt-get install sqlite3
-
git clone https://gist.github.com/ea57cfe9510b6526288d456229a3d61e.git
-
Visit https://explorer.livepeer.org/ and note the current round number which can be found in the lower left hand corner of the screen.
-
cd ea57cfe9510b6526288d456229a3d61e
-
bash mark_expired_tickets.sh <PATH_TO_DB_FILE> <CURRENT_ROUND>
<PATH_TO_DB_FILE>
is the path to the lpdb.sqlite3
file used by your node. By default this will be located in ~/.lpData/mainnet
when your node is connected to mainnet.
<CURRENT_ROUND>
is the current round number noted in step 2.
Ex.
bash mark_expired_tickets.sh ~/.lpData/mainnet/lpdb.sqlite3 1841