美文网首页
ubuntu安装parity

ubuntu安装parity

作者: stevenlife | 来源:发表于2019-03-22 14:01 被阅读0次

    方法一

    git clone https://github.com/paritytech/parity
    
    cd parity
    
    cargo build --release(假如未安装cargo,需要执行 sudo apt install cargo)
    
    

    方法二

    Beta版:
    
    bash <(curl https://get.parity.io -L)
    
    稳定版:
    
    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只会保存最新的状态,不会保存历史状态,比如eth_getTransactionCount中第二个参数如果是需要获取latest(最新的余额),就只需要fast模式就可以,如果要获取最早的,earliest,或者任意历史区块状态下的余额,就需要archive模式才可以获取到
    
    # Enables Fat DB
    
    fat_db = "on"
    
    [parity]
    
    # Parity continously syncs the chain
    
    mode = "active"
    
    # Ethereum Classic
    
    # chain = "classic" #(如果是以太坊经典,需配置该项)
    
    [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"
    
    

    启动parity

    nohup parity>parity.log 2>&1 &
    
    nohup parity --no-download --mode=active --pruning=archive --cache-size-db=512 --auto-update=none --base-path=/data/eth/data --jsonrpc-port=8545 --jsonrpc-interface=172.31.62.64  --jsonrpc-hosts=all --no-ws >> /data/std.log 2>&1 &
    
    

    默认数据目录

    ~/.local/share/io.parity.ethereum
    
    

    相关资料

    配置文件
    
    [https://wiki.parity.io/Configuring-Parity](https://wiki.parity.io/Configuring-Parity)
    
    [https://paritytech.github.io/parity-config-generator/](https://paritytech.github.io/parity-config-generator/)
    
    JSONRPC
    
    [https://wiki.parity.io/JSONRPC](https://wiki.parity.io/JSONRPC)
    
    parity钱包github地址
    
    [https://github.com/paritytech/parity/](https://github.com/paritytech/parity/)
    
    引介 | 以太坊区块链的大小不会在短时间内超过1TB
    
    [https://ethfans.org/posts/the-ethereum-blockchain-size-will-not-exceed-1tb-anytime-soon](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](https://dev.to/5chdn/the-ethereum-blockchain-size-will-not-exceed-1tb-anytime-soon-58a)
    
    

    相关文章

      网友评论

          本文标题:ubuntu安装parity

          本文链接:https://www.haomeiwen.com/subject/khwlvqtx.html