mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-29 08:39:46 +03:00
Fix bitcoin i2pd destinations directory growth
This commit is contained in:
1 parent
e71c4367ce
commit
540f17abc8
2 files changed
+22
-1
No files matched your search
@@ -4,6 +4,21 @@ APP_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")"
|
||||
DATA_ROOT="${APP_DATA_ROOT:-${APP_DIR}/data}"
|
||||
DESIRED_OWNER="1000:1000"
|
||||
|
||||
# Why we clear i2pd's destinations/ directory on every start:
|
||||
# - By default this app runs Bitcoin Core with i2pacceptincoming=0, so Core opens a new
|
||||
# throwaway (TRANSIENT) SAM session for each outbound I2P connection.
|
||||
# - i2pd treats every SAM session as public and saves its encryption keys to
|
||||
# destinations/<address>.<keytype>.dat. A throwaway session has a new random address,
|
||||
# so its file is never read again, and i2pd never deletes these files.
|
||||
# - On one long-running node this reached ~134k files and hit ext4's directory index limit.
|
||||
# - There is no i2pd option to turn this off, and i2pd 3.0.0.1 has the same code, so an
|
||||
# update won't fix it. The proper fix is upstream in i2pd (related request:
|
||||
# https://github.com/PurpleI2P/i2pd/issues/1024).
|
||||
# Removing the whole directory (not just its files) also resets ext4's index, which never
|
||||
# shrinks. i2pd recreates it empty. The node's I2P address is unaffected: Bitcoin Core
|
||||
# keeps its own key in i2p_private_key, and i2pd just generates fresh encryption keys.
|
||||
rm -rf "${APP_DIR:?}/data/i2pd/destinations" || true
|
||||
|
||||
set_correct_permissions() {
|
||||
local -r path="${1}"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ storage:
|
||||
dataRoot: data
|
||||
category: bitcoin
|
||||
name: Bitcoin Node
|
||||
version: "1.5.0"
|
||||
version: "1.5.0-patch.1"
|
||||
tagline: Run your personal node powered by Bitcoin Core
|
||||
description: >-
|
||||
Run your Bitcoin node, powered by Bitcoin Core. Independently store and validate every Bitcoin transaction.
|
||||
@@ -38,6 +38,12 @@ gallery:
|
||||
path: ""
|
||||
defaultPassword: ""
|
||||
releaseNotes: >-
|
||||
This update fixes a buildup of temporary I2P files that could grow without limit on long-running nodes and eventually cause disk errors. They are now cleared each time the app starts. Your node's I2P address doesn't change.
|
||||
|
||||
|
||||
Previous Bitcoin Node 1.5.0 release notes:
|
||||
|
||||
|
||||
This update adds Bitcoin Core v32.1, v31.2, v30.4, and v29.5, which fix security vulnerabilities that Bitcoin Core disclosed on October 28, 2026.
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user