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

Python SDK部分接口返回信息是十六进制,用户体验不友好 #73

Closed
cyjseagull opened this issue Nov 1, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cyjseagull
Copy link
Contributor

getTotalTransactionCount, getPendingTxSize和getPbftView接口返回的信息十六进制,用户体验不友好,建议优化为十进制。

# getTotalTransactionCount原本输出:
INFO >> getTotalTransactionCount
     >> {
    "blockNumber": "0x10",
    "failedTxSum": "0x0",
    "txSum": "0x10"
}

# 建议优化为:
INFO >> getTotalTransactionCount
     >> {
    "blockNumber": "16",
    "failedTxSum": "0",
    "txSum": "16"
}
# getPendingTxSize原本输出
INFO >> getPendingTxSize
     >> 0x16

# 建议优化为:
INFO >> getPendingTxSize
     >> 22
# getPbftView原本输出
INFO >> getPbftView
     >> 0x11

# 建议优化为:
INFO >> getPbftView
     >> 17
@cyjseagull
Copy link
Contributor Author

already solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant