1. Geth目录介绍
bash
~/.ethereum/
├── geth/
│ ├── chaindata/ # 区块链数据(区块 & 状态)
│ ├── lightchaindata/ # 轻节点数据(仅轻客户端模式存在)
│ ├── nodes/ # 以太坊节点的网络数据(节点发现、对等连接等)
│ ├── snapshots/ # 快照同步数据(用于 `snap` 模式)
│ ├── transactiondb/ # 交易索引数据库
│ ├── triecache/ # 状态树缓存
│ ├── ethash/ # Ethash 工作量证明(PoW)缓存(已废弃)
│ ├── blobs/ # EIP-4844 相关数据(仅限最新版本)
│ ├── beacon/ # 信标链数据(仅限 PoS 模式)
│ ├── secrets/ # 私钥存储(如 JWT Secret)
│ └── extdb/ # 外部数据库(如 SQLite)
│
├── keystore/ # 账户私钥存储(加密的 JSON 格式)
├── geth.ipc # IPC 进程通信文件(用于 `attach` 连接)
├── history/ # 控制台历史命令(`geth console`)
└── logs/ # 日志文件
~/.ethereum/
├── geth/
│ ├── chaindata/ # 区块链数据(区块 & 状态)
│ ├── lightchaindata/ # 轻节点数据(仅轻客户端模式存在)
│ ├── nodes/ # 以太坊节点的网络数据(节点发现、对等连接等)
│ ├── snapshots/ # 快照同步数据(用于 `snap` 模式)
│ ├── transactiondb/ # 交易索引数据库
│ ├── triecache/ # 状态树缓存
│ ├── ethash/ # Ethash 工作量证明(PoW)缓存(已废弃)
│ ├── blobs/ # EIP-4844 相关数据(仅限最新版本)
│ ├── beacon/ # 信标链数据(仅限 PoS 模式)
│ ├── secrets/ # 私钥存储(如 JWT Secret)
│ └── extdb/ # 外部数据库(如 SQLite)
│
├── keystore/ # 账户私钥存储(加密的 JSON 格式)
├── geth.ipc # IPC 进程通信文件(用于 `attach` 连接)
├── history/ # 控制台历史命令(`geth console`)
└── logs/ # 日志文件