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

solo配置下token预创建操作失败 #20

Closed
bysomeone opened this issue Nov 15, 2018 · 5 comments
Closed

solo配置下token预创建操作失败 #20

bysomeone opened this issue Nov 15, 2018 · 5 comments

Comments

@bysomeone
Copy link
Collaborator

bysomeone commented Nov 15, 2018

执行命令:

cli send token precreate -f 0.01 -i testToken -n testToken -s TC -a 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv -t 100000 -p 1 -k 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv

结果:

{
    "tx": {
        "execer": "token",
        "payload": {
            "tokenPreCreate": {
                "name": "testToken",
                "symbol": "TC",
                "introduction": "testToken",
                "total": "10000000000000",
                "price": "100000000",
                "owner": "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
            },
            "Ty": 7
        },
        "rawpayload": "0x38070a4b0a0974657374546f6b656e120254431a0974657374546f6b656e2080c0caf384a3022880c2d72f3222313271796f6361794e46374c7636433971573461767873324537553431664b536676",
        "signature": {
            "ty": 1,
            "pubkey": "0x0320bbac09528e19c55b0f89cb37ab265e7e856b1a8c388780322dbbfd194b52ba",
            "signature": "0x30440220598679f49176afd76c96d827db41be705256e2d0d90a314665d9edb21d239b2f022035fe3f647db75d5c42259aa1e27719fb0cc476413d0c3db2ffd5afd19a57a944"
        },
        "fee": "0.0010",
        "expire": 1542261508,
        "nonce": 7369629917767364095,
        "to": "12hpJBHybh1mSyCijQ2MQJPk7z7kZ7jnQa",
        "from": "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
    },
    "receipt": {
        "ty": 1,
        "tyName": "ExecPack",
        "logs": [
            {
                "ty": 2,
                "tyName": "LogFee",
                "log": {
                    "prev": {
                        "currency": 0,
                        "balance": "985999400000",
                        "frozen": "0",
                        "addr": "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
                    },
                    "current": {
                        "currency": 0,
                        "balance": "985999300000",
                        "frozen": "0",
                        "addr": "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
                    }
                },
                "rawLog": "0x0a2b10c0b89391d91c2222313271796f6361794e46374c7636433971573461767873324537553431664b536676122b10a0ab8d91d91c2222313271796f6361794e46374c7636433971573461767873324537553431664b536676"
            },
            {
                "ty": 1,
                "tyName": "LogErr",
                "log": "ErrNotFound",
                "rawLog": "0x4572724e6f74466f756e64"
            }
        ]
    },
    "proofs": [
        "0xf8f99a2d1126a1fb16e464ef326bf5a8395dcb1ab92c1b73836e8db7c3057e42"
    ],
    "height": 9,
    "index": 1,
    "blocktime": 1542261391,
    "amount": "0.0000",
    "fromaddr": "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv",
    "actionname": "tokenPreCreate",
    "assets": null
}

通过本地启动单机版本chain solo挖坑,启动autotest测试,发现token预创建失败
本地启动autotest命令, make autotest dapp=token(需要合并最新的autotest pr)

@33cn
Copy link
Owner

33cn commented Nov 15, 2018

看上去是黑名单没有正确设置

@bysomeone
Copy link
Collaborator Author

看上去是黑名单没有正确设置

用ticket挖矿开两个节点跑是通过的

@33cn
Copy link
Owner

33cn commented Nov 15, 2018

solo 和 ticket 的区别是 solo的速度非常快,大概 20ms 一个块,可能设置黑名单的交易没有设置成功的原因,你打印一下黑名单设置的效果

@bysomeone
Copy link
Collaborator Author

solo 和 ticket 的区别是 solo的速度非常快,大概 20ms 一个块,可能设置黑名单的交易没有设置成功的原因,你打印一下黑名单设置的效果

脚本上操作类似,都是黑名单交易配置完等一个区块,再跑的autotest,理论上时间是充裕的,明天要打印下中间结果看看

@bysomeone
Copy link
Collaborator Author

已确定是配置文件问题,需要在chain33.test.toml中增加manage和token子配置,添加管理权限地址,已经在chain33 autotest pr中修改

suyanlong pushed a commit to suyanlong/plugin that referenced this issue Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants