Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

运行错误,accessor #232

Open
tress101 opened this issue Dec 24, 2017 · 12 comments
Open

运行错误,accessor #232

tress101 opened this issue Dec 24, 2017 · 12 comments

Comments

@tress101
Copy link

[我也是路印爱好者,非常期待路印落地,看了最新的进度报告后抱着试一试的心态运行一下矿机,预先感受一下这个伟大的作品。按照readme的说明编译成功了,在执行时发生了一些错误。我知道团队之后会对relay部分做一个非常详细的说明,我把我在使用现在版本中遇到的问题在这里mark一下,希望可以对团队之后的工作有所帮助。((:,路印成功的时候,区块链应用深入人心的时候,我是不是可以打开这个issue区 装X一下[你看,我很早就关注了!]。。。O(∩_∩)O哈哈~,)

我修改了relay.toml中的,[mysql]、[contract]、[common.protocolImpl]、[common.protocolImpl.address]
但还存在一点迷惑
[common.protocolImpl]中implAbi、registryAbi、delegateAbi、tokenRegistryAbi; (这几项参照第七期周报写的,但我不知道下面几个地址如何配置

  • TokenRegistry: 0x974e1e639b5a3c5f44909E1959Ab786AF21B7086
  • RinghashRegistry: 0xeE445e921F481c04A5d254A7F8f013F48A6f0947 的abi
    和registryAbi、registryAbi和tokenRegistryAbi,的对应关系我不知道,因为都有一个registry
  • TransferableMultsig: 0x7421ad9C880eDF007a122f119AD12dEd5f7C123B,周报中的这个地址我不知道如何用

我的启动顺序是:
1.启动mysql
2.启动eth节点
3.启动ipfs
3.运行relay程序时,发生错误。
2017-12-24 19-52-38

@tress101
Copy link
Author

[accessor]
raw_url = "http://127.0.0.1:8545"
这个参数也不会配置,不知道什么意思!
团队真的要做到小白也可以挖矿,那一定得在文档上下功夫了!毕竟在有些人眼里的单词,我们认为是字母!O(∩_∩)O哈哈~

@BenjaminPrice
Copy link

To connect to geth, you need to run your Ethereum node with the flags --rpc --rpcaddr 0.0.0.0. That should allow you past the error you're seeing. Then, wait for your geth node to catch up with the Ethereum blockchain (currently, block number 4789103) and try again.

@lydy
Copy link
Contributor

lydy commented Dec 25, 2017

You needn't set any address except protocol address, because other addresses can be gotten by calling contract.

@tress101
Copy link
Author

Thank you very much for your answer, and on the basis of your advice I continue to study how to run the relay node today. The previous problems did not appear, but there were new problems, and I still haven't found a solution after trying to explore.
My running process is as follows:

  1. start the MySQL
  2. start the ETH node: sudo -E geth --rpc --rpcaddr 0.0.0.0
  3. start the ipfs: sudo -E ipfs daemon
  4. start the relay node: sudo -E ./build/bin/relay --mode=relay

I modified the following configuration:
1.The first item of addresses in [contract]
2.implAbi
3.[common.protocolImpl.address]
2

@lydy
Copy link
Contributor

lydy commented Dec 26, 2017

We are using the future pubsub in ipfs to broadcast orders, so ipfs should be run with --enable-pubsub-experiment .

https://ipfs.io/docs/commands/#ipfs-pubsub

@tress101
Copy link
Author

Thank you very much for your patience and guidance. It has worked successfully. (∩_∩)

@strahe
Copy link

strahe commented Dec 29, 2017

@FeMouse 目前可以正式挖矿了么?还是测试

@tress101
Copy link
Author

@strahe 我看官网的通知了解的进度。下面的见解是个人的猜测与分析
1)现在协议已经部署了,应该可以挖矿了!
2)我们可以在loopring.io上看到交易信息,这个网站可以从运行的relay中获取历史交易数据与订单数据。我看到交易次数很小,就算现在开始挖矿应该也挖不到,因为路印钱包还没有大范围测试,导致交易数量非常少
3)现在路印团队正在找100个测试钱包的参与者,我准备在oopring.io有交易量的时候开始挖矿,试一下自己调试好的矿机
4)我看了loopring.io上的挖矿记录,基本上交易的数额很小,导致路印矿机不赚钱反而会赔钱。如果想要自己挖矿的话,一方面是需要自己修改矿机,使得不赚钱的交易不提交;另一方面是就是坐等官方出一些具体的矿机指南。

但是我还是有一些疑问?(〃'▽'〃)
1)矿机挖矿有内测用户吗?
2)之前看白皮书,矿机也是有排名的,如前1000名会有优惠。这个和矿机的抵押金(还需要一个智能合约),与挖矿时间有关,我之前已经用自己的地址运行过一次矿机了,这算开始了吗?O(∩_∩)O哈哈~
3)应该有一个矿机地址注册机制吧,所以还是不确定等到100名测试钱包的同志(志同道合的人)使用钱包的时候(有交易量),开源的矿机能挖矿与否。
4)坐等吧。。。不要急,等教程吧

@strahe
Copy link

strahe commented Dec 29, 2017

@FeMouse ok, 只能这样了, 我也打算尝试挖矿, 当作支持路印了, 但不知道后续门槛如何,

@tress101
Copy link
Author

@strahe 东哥说门槛不高,学过计算机的人应该都能轻松挖矿,其他人就不敢保证了!

@strahe
Copy link

strahe commented Dec 29, 2017

@FeMouse 我是说硬件门槛

@af913337456
Copy link

@FeMouse 能加下好友吗,我正在研究 relay 的源码,希望能互相交流下。我QQ 913337456,邮箱:913337456@qq.com

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants