- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我似乎无法获得最新版本的Geth 1.8.3。它停止并且永远不会开始同步。
我正在尝试将其连接到rinkeby.io测试网进行智能合约测试。
下载并使用ADD
将文件复制到镜像后,我在1.7.3上取得了成功。但是我想自动化构建,以便它可以通过deployment.yml
在Google云中使用。
目前,我正在本地计算机上进行测试,因为我知道防火墙适用于1.7.3。 (未设置特定规则)
Dockerfile构建良好,我可以看到它显示在rinkeby.io节点列表中,但是即使经过1小时,也没有一个块被同步。
它停留在:IPC endpoint opened
使用1.7.3,需要10到15秒才能开始同步。
Dockerfile
# ----- 1st stage build -----
FROM golang:1.9-alpine as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git curl
WORKDIR /
RUN curl -o rinkeby.json https://www.rinkeby.io/rinkeby.json
RUN git clone https://github.com/ethereum/go-ethereum.git
RUN cd /go-ethereum && make geth
# ----- 2nd stage build -----
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder rinkeby.json $HOME/rinkeby.json
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
VOLUME [ "/root/.rinkeby/geth/lightchaindata" ]
EXPOSE 8545 8546 30303 30304 30303/udp 30304/udp
RUN geth --datadir=$HOME/.rinkeby init rinkeby.json
CMD ["sh", "-c", "geth --networkid=4 --datadir=$HOME/.rinkeby --rpcaddr 0.0.0.0 --syncmode=fast --ethstats='Oxy:Respect my authoritah!@stats.rinkeby.io' --bootnodes=enode://a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf@52.169.42.101:30303?discport=30304"]
INFO [04-04|13:14:10] Maximum peer count ETH=25 LES=0 total=25
INFO [04-04|13:14:10] Starting peer-to-peer node instance=Geth/v1.8.4-unstable-6ab9f0a1/linux-amd64/go1.9.2
INFO [04-04|13:14:10] Allocated cache and file handles database=/root/.rinkeby/geth/chaindata cache=768 handles=1024
WARN [04-04|13:14:10] Upgrading database to use lookup entries
INFO [04-04|13:14:10] Database deduplication successful deduped=0
INFO [04-04|13:14:10] Initialised chain configuration config="{ChainID: 4 Homestead: 1 DAO: <nil> DAOSupport: false EIP150: 2 EIP155: 3 EIP158: 3 Byzantium: 1035301 Constantinople: <nil> Engine: clique}"
INFO [04-04|13:14:10] Initialising Ethereum protocol versions="[63 62]" network=4
INFO [04-04|13:14:10] Loaded most recent local header number=0 hash=6341fd…67e177 td=1
INFO [04-04|13:14:10] Loaded most recent local full block number=0 hash=6341fd…67e177 td=1
INFO [04-04|13:14:10] Loaded most recent local fast block number=0 hash=6341fd…67e177 td=1
INFO [04-04|13:14:10] Regenerated local transaction journal transactions=0 accounts=0
INFO [04-04|13:14:10] Starting P2P networking
INFO [04-04|13:14:12] UDP listener up self=enode://6d27f79b944aa75787213835ff512b03ec51434b2508a12735bb365210e57b0084795e5275150974cb976525811c65a49b756ac069ca78e4bd6929ea4d609b65@[::]:30303
INFO [04-04|13:14:12] Stats daemon started
INFO [04-04|13:14:12] RLPx listener up self=enode://6d27f79b944aa75787213835ff512b03ec51434b2508a12735bb365210e57b0084795e5275150974cb976525811c65a49b756ac069ca78e4bd6929ea4d609b65@[::]:30303
INFO [04-04|13:14:12] IPC endpoint opened url=/root/.rinkeby/geth.ipc
最佳答案
从头开始重建Dockerfile之后,我确实发现了问题所在。
在我的CMD
行的末尾有这个结尾。
?discport=30304
关于docker - Geth 1.8.3,无法同步到rinkeby.io-卡在:IPC端点打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49652967/
我需要为我的宠物项目测试以太坊。 我去https://faucet.rinkeby.io/ ,在 MetaMask 中添加我的推文和我的以太坊地址的链接,选择 3 Ethers / 8 hours .
我开始了我的第一个区 block 链教程,它是: https://www.youtube.com/watch?v=9oERTH9Bkw0&t=696s repo :https://github.com
根据 official docs的 ethers.js ,这应该是如何使用自定义数据连接到特定网络(如 Rinkeby-testnet)的方式: const provider = ethers.ge
我一直遇到标题中指定的。 我开发了一个智能合约并成功编译并部署到网络中,如下所示: 1.运行testrpc 2. 松露编译 3.松露迁移 但是,仍然显示上述错误。 然后我尝试删除构建文件并按照以下步骤
我在 Node.JS dApp 服务器端的 Rinkeby 网络上遇到间歇性的“替换交易定价过低”错误。我在通过 estimateGas() 调用返回给我的交易 send() 调用中使用了估计气体的确
我在Windows上尝试通过rinkeby连接到以太坊Testnet。 我下载了geth 1.8.2和以太坊钱包0.9.3 我给第一个命令是: geth --rinkeby --fast --cach
我不能在我的契约(Contract)上调用创建过滤器,这是我下面的代码。我能够获得契约(Contract)并在其上运行功能,但我无法收听事件: myContract = w3.eth.contract
我一直在使用 this course 学习 Solidity由 Stephen Grider 撰写,到目前为止一切顺利,我正在尝试部署 my code到 Rinkeby 测试网络。 作为引用,我使用
我是一名优秀的程序员,十分优秀!