开发substrate遇到的问题

一、在云服务器搭建后无法在本地浏览器前端页面访问

解决方法:启动链节点的命令改为:

./target/release/node-template --dev --unsafe-rpc-external --unsafe-ws-external --rpc-cors all --rpc-methods Unsafe

二、编译报错,需要在编译前替换为:

rustup install nightly-2020-10-06
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-06
export WASM_BUILD_TOOLCHAIN=nightly-2020-10-06

 三、本地环境搭建报错  [6] Couldn't resolve host name (Could not resolve host: crates)

临时规避,禁止并行化下载安装,命令行输入为:

CARGO_HTTP_MULTIPLEXING=false cargo build --release

  

posted @ 2020-12-25 17:15  codeg  阅读(161)  评论(0编辑  收藏  举报