infura的免费节点对于pending池method不做支持,
因此想要操作pending池相关就需要自己搭建parity节点了,
本文详细说明下搭建过程,希望有需要的同学可以有个辅助!
1、搭建服务器环境为Ubuntu 14.04 64位
2、搭建命令(采用脚本搭建)
最新BETA版本: bash <(curl https://get.parity.io -L)
标准版(建议): bash <(curl https://get.parity.io -L) -r stable
3、启动parity(可以选择light模式和正常模式,建议nohup后台启动)
parity --light --jsonrpc-interface all --jsonrpc-cors all --jsonrpc-apis all --jsonrpc-hosts all
parity --public-node --jsonrpc-interface all --jsonrpc-cors all --jsonrpc-apis all --jsonrpc-hosts all
后台启动方式(输出日志到.out文件): nohup 命令 > nohup.out &
4、若启动失败可能有一部分同学需要升级下 gcc/g++版本
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
然后再试一下,如果错误提示为某个lib库找不到,说明虽然升级了gcc/g++版本,但是库并没有更新为新版的
查找libstdc++ 库
find ./ -name libstdc++.so*
并复制到/usr/lib目录下,并重新建立软连接就可以(命令如下)
rm -f libstdc++.so.6
ln -s libstdc++.so.6.0.21 libstdc++.so.6.0.8
** parity节点启动后就会拉取区块了
原创,请勿转载,谢谢