1

为了跳过信任第三方的需要并跳过在我的 PC 上完整下载区块链,我想在本地服务器上设置一个同步以太坊测试网区块链的完整节点,然后将我的 PC 连接到该服务器,使用 geth 实例。
这在某种程度上可能吗?我怎样才能做到这一点?

4

2 回答 2

1

You can just connect to your local geth server via rpc

geth attach http://host:port

There you can read about geth's rpc apis

You can start rpc listener with this command on your geth server after or during syncing

admin.startRPC(host, port, cors, apis)

As an alternative you can just use light sync on your main pc so you won't need to download full blockchain

geth --light

But it depends on what you gonna do with it

于 2018-03-24T15:38:10.557 回答
0

对于其他有同步问题的人。我认为 [对于开发和测试] 在本地设置以太坊区块链而不是连接任何测试网或主网是一个好主意。

参考: https ://nodejsera.com/blockchain/how-to-start-a-private-ethereum-blockchain-network.html

于 2018-05-10T19:15:00.310 回答