Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初始化钱包后还是会经常弹出选择组织 #3

Closed
yourtion opened this issue Dec 7, 2016 · 8 comments
Closed

初始化钱包后还是会经常弹出选择组织 #3

yourtion opened this issue Dec 7, 2016 · 8 comments
Assignees
Labels

Comments

@yourtion
Copy link

yourtion commented Dec 7, 2016

钱包已经初始化了,也可以挖矿,如下图:

screen shot 2016-12-07 at 9 47 15 pm

screen shot 2016-12-07 at 9 47 24 pm

但是经常弹出下图:

screen shot 2016-12-07 at 9 49 47 pm

这样是已经工作正常了,只是页面有bug,还是我初始化和加入组织的方法有问题?

@Revolution1
Copy link
Contributor

Revolution1 commented Dec 8, 2016

好像是你的地址和组织没有绑定成功,前端没有捕捉到这个错误。现在的 Daochain 在流程上有些问题。现在的解决方法就是你手动备份一下你原来的 keystore 然后重新创建容器,重新创建一个钱包,然后导入keystore把原来挖出来的币转入到新的钱包里。。。。。。。。
或者你可以看一下 app/hubclient.py 手动 call daohub的api,绑定你现在的钱包地址

@Revolution1
Copy link
Contributor

应该是你的 daocloud 账户名下没有 daocloud 组织,内测版本默认是只支持有组织的用户的。当然你可以用我上面说的方法绕过

@yourtion
Copy link
Author

yourtion commented Dec 8, 2016

好吧,应该是我的 daocloud 账户名下没有 daocloud 组织。我试试看,怎么样确定我已经成功绑定组织?就是不弹出我那个选择组织的么?

@Revolution1
Copy link
Contributor

Revolution1 commented Dec 8, 2016

sorry 仔细想了一下好像是没法绕过的,除非你改一下代码重新打镜像。。。。。

app/hubclient.py

把:

    @property
    def orgs(self):
        """
        :rtype: list(dict)
        """
        orgs = []
        for t in self.token_info['user']['tenants']:
            if t['is_org']:
                orgs.append(t)
        return orgs

改成:

    @property
    def orgs(self):
        """
        :rtype: list(dict)
        """
        return self.token_info['user']['tenants']

然后重新打包一下镜像,做一个你自己的“魔改版”。。。。

@yourtion
Copy link
Author

yourtion commented Dec 8, 2016

我试试看

@Revolution1
Copy link
Contributor

记得备份 keystore

@yourtion
Copy link
Author

yourtion commented Dec 8, 2016

@Revolution1 我进容器改了,不出现那个组织界面了好像,但是我还是要手动去绑定组织?

@congjiujiu congjiujiu self-assigned this Dec 8, 2016
@congjiujiu congjiujiu added the bug label Dec 8, 2016
congjiujiu pushed a commit that referenced this issue Dec 8, 2016
congjiujiu added a commit that referenced this issue Dec 8, 2016
@Revolution1
Copy link
Contributor

@yourtion 是的,需要手动绑一下

@Revolution1 Revolution1 added question and removed bug labels Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants