ubuntu安裝parity
方法一
git clone https://github.com/paritytech/parity
cd parity
cargo build --release(假如未安裝cargo誓斥,需要執(zhí)行 sudo apt install cargo)
方法二
Beta版:
bash <(curl https://get.parity.io -L)
穩(wěn)定版:
bash <(curl https://get.parity.io -L) -r stable
配置parity
# This config should be placed in following path:
# ~/.local/share/io.parity.ethereum/config.toml
[footprint]
# Compute and Store tracing data. (Enables trace_* APIs).
tracing = "on"
# Prune old state data. Maintains journal overlay - fast but extra 50MB of memory used.
pruning = "fast" # fast只會(huì)保存最新的狀態(tài)寄摆,不會(huì)保存歷史狀態(tài)穗酥,比如eth_getTransactionCount中第二個(gè)參數(shù)如果是需要獲取latest(最新的余額),就只需要fast模式就可以辱挥,如果要獲取最早的,earliest赘娄,或者任意歷史區(qū)塊狀態(tài)下的余額趾牧,就需要archive模式才可以獲取到
# Enables Fat DB
fat_db = "on"
[parity]
# Parity continously syncs the chain
mode = "active"
# Ethereum Classic
# chain = "classic" #(如果是以太坊經(jīng)典故响,需配置該項(xiàng))
[rpc]
# Allows Cross-Origin Requests from domain '192.168.0.126'.
cors = ["192.168.0.126"]
# JSON-RPC will be listening for connections on IP 0.0.0.0.
interface = "0.0.0.0"
啟動(dòng)parity
nohup parity>parity.log 2>&1 &
默認(rèn)數(shù)據(jù)目錄
~/.local/share/io.parity.ethereum
相關(guān)資料
配置文件
https://wiki.parity.io/Configuring-Parity
https://paritytech.github.io/parity-config-generator/
JSONRPC
https://wiki.parity.io/JSONRPC
parity錢包github地址
https://github.com/paritytech/parity/
引介 | 以太坊區(qū)塊鏈的大小不會(huì)在短時(shí)間內(nèi)超過1TB
https://ethfans.org/posts/the-ethereum-blockchain-size-will-not-exceed-1tb-anytime-soon
https://dev.to/5chdn/the-ethereum-blockchain-size-will-not-exceed-1tb-anytime-soon-58a