Giter VIP home page Giter VIP logo

bityuan's Introduction

pipeline status Go Report Card Windows Build Status Macos Build Status

基于 chain33 区块链开发 框架 开发的 bityuan 系统(v6.8.17)

官方网站: https://www.bityuan.com

区块链浏览器: https://mainnet.bityuan.com

开发框架:https://chain.33.cn

注意: master 分支不是 发布版本, 不要用于生产环境

bug 奖励

我们会对bug 评价4个等级(不会奖励人民币,等值虚拟资产)。 只有影响现有在线运行系统的,并且会产生严重分叉等行为的,才会评价为 L3

L0 1000
L1 3000
L2 10000
L3 20000

安装

golang 1.19+

支持make file的平台

git clone https://github.com/bityuan/bityuan $GOPATH/src/github.com/bityuan/bityuan

//开启mod功能
export GO111MODULE=on

//国内用户需要导入阿里云代理,用于下载依赖包
export GOPROXY=https://mirrors.aliyun.com/goproxy

cd $GOPATH/src/github.com/bityuan/bityuan

make

就可以完成编译安装

更新go.mod

make update

bityuan's People

Contributors

bysomeone avatar chain33-shg avatar chainseed avatar harrylee2015 avatar jpoehnelt avatar libangzhu avatar linj-disanbo avatar lyh169 avatar mdj33 avatar niniwzw avatar semantic-release-bot avatar stardexproject avatar suyanlong avatar vipwzw avatar yann-sjtu avatar yuanchain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bityuan's Issues

建议增加bityuan默认配置项 bootstraps

bootstraps为bityuan.go默认内置的配置项,长期在线,对外不暴露该配置。
seeds 配置项应该暴露在bityuan.toml中,由用户自行根据需要配置。

建议把bityuan.go [p2p.sub.dht] 下seeds 字段修改为 bootstraps

help 提示中, cli没有前缀

help 提示中, cli没有前缀。 types.Init(title, config) 如果只提供 title 参数,不提供配置, title 设置不生效。
$ ./bityuan-cli
client tools

Usage:
-cli [command]

1.67.0同步节点卡到546820高度

INFO[03-28|19:52:21] dbMaybeStoreBlock block header existed module=blockchain hash=0x2f4aed8177ff31a90b2c61e3353014f8167e0a4bdf03609c98da924aa4dd440b
INFO[03-28|19:52:21] PreExecBlock module=util height=546820 checkCount=3 CheckSign=503.917µs
EROR[03-28|19:52:21] exec tx error = module=execs err=ErrInvalidEthAddr exec=coins action=transfer
EROR[03-28|19:52:21] exec tx = module=execs index=2 execer=coins err=ErrInvalidEthAddr
INFO[03-28|19:52:21] PreExecBlock module=util height=546820 ExecTx=651.613µs
INFO[03-28|19:52:21] PreExecBlock module=util height=546820 WaitDupCheck=184ns
INFO[03-28|19:52:21] ExecBlock module=util height=546820 ntx=3 writebatchsync=false cost=2.227301ms
EROR[03-28|19:52:21] connectBlock ExecBlock is err! module=blockchain height=546820 err=ErrCheckStateHash
EROR[03-28|19:52:21] ReadBlockToExec:ProcessBlock:err! module=blockchain submodule=syn height=546820 hash=0x2f4aed8177ff31a90b2c61e3353014f8167e0a4bdf03609c98da924aa4dd440b err=ErrCheckStateHash

cli命令行对 “balance" 进行了四舍五入的处理,导致发送交易时出现 ErrNoBalance 的错误。

cli 输入 account list 返回
"acc": {
"balance": "1.0090",
"frozen": "0.0000",
"addr": "1LqyKNKSmZ2TKJFCbLcjSMdwYJodLMw6qZ"
},
实际的结果是:
"acc":{"currency":0.0,"balance":100899999.0,"frozen":0.0,"addr":"1LqyKNKSmZ2TKJFCbLcjSMdwYJodLMw6qZ"},
"label":""node award"

导致发送交易金额为 1.0080 (0.001的手续费)导致出现 ErrNoBalance 的错误。
见 交易哈希 0x16357c8e3b5b72e351d01369faa16063ff48c64c8516c6844364b6ba4b415f7f

主链同步的时候,经常报err=ErrHeightNotExist,导致同步特别缓慢

t=2021-09-01T09:06:17+0800 lvl=info msg=ReadBlockToExec:ReadBlockByHeight module=blockchain submodule=syn height=12349053 peerMaxBlkHeight=15974489 err=ErrHeightNotExist
t=2021-09-01T09:06:17+0800 lvl=eror msg=refreshPeerInfo module=p2p.peer new stream error="protocol not supported" peer id=16Uiu2HAmN1N9ghaVGKrzxxSzSZ2tcv1VcJJKFuehsjLLydF8A2Gu
t=2021-09-01T09:06:17+0800 lvl=eror msg=refreshPeerInfo module=p2p.peer error="protocol not supported" pid=16Uiu2HAmN1N9ghaVGKrzxxSzSZ2tcv1VcJJKFuehsjLLydF8A2Gu
t=2021-09-01T09:06:18+0800 lvl=info msg=ReadBlockToExec:ReadBlockByHeight module=blockchain submodule=syn height=12349053 peerMaxBlkHeight=15974489 err=ErrHeightNotExist

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Cannot push to the Git repository.

semantic-release cannot push the version tag to the branch master on the remote Git repository with URL https://[secure]@github.com/bityuan/bityuan.

This can be caused by:


Good luck with your project ✨

Your semantic-release bot 📦🚀

编译报错

编译时返回:

github.com/lucas-clemente/quic-go/internal/qtls

/root/go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/qtls/go119.go:6:13: cannot use "quic-go doesn't build on Go 1.19 yet." (untyped string constant) as int value in variable declaration

go版本超过1.19无法编译

GBLIC

./bityuan-linux-amd64: /lib64/libc.so.6: version GLIBC_2.32' not found (required by ./bityuan-linux-amd64) ./bityuan-linux-amd64: /lib64/libc.so.6: version GLIBC_2.34' not found (required by ./bityuan-linux-amd64)

平行链重新搭建之后发现交易失败,请问是什么原因?

步骤如下:

  1. 下载平行链代码

  2. 修改配置行链配置文件

  3. 启动平行链,等待数据同步成功

  4. 使用postman导入平行链seed

  5. 使用postman导入创世地址的私钥

  6. 调用Chain33.WalletTxList接口成功
    curl --location -g --request POST '{{chain_url}}:8901'
    --data-raw ' {
    "jsonrpc":"2.0",
    "id":0,
    "method":"Chain33.WalletTxList",
    "params":[{"fromTx":"","count":10,"direction":0}]
    }'

  7. 发送交易
    CreateRawTransaction调用没有问题
    curl --location -g --request POST '{{chain_url}}:8901'
    --header 'Content-Type: text/plain'
    --data-raw '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"Chain33.CreateRawTransaction",
    "params":[
    {
    "to":"1AJccUkd......qAAzKQ",
    "amount":10000000,
    "fee":0,
    "note":"first test",
    "isToken":false,
    "execer":"coins"
    }
    ]
    }'
    Chain33.CreateNoBalanceTransaction调用提示错误, 返回错误:ErrAddrNotExist
    curl --location -g --request POST '{{chain_url}}:8901'
    --header 'Content-Type: text/plain'
    --data-raw '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"Chain33.CreateNoBalanceTransaction",
    "params":[
    {
    "txHex":"0x0a05636f696e73123918010a351080ade2041a0a66697273742074657374222231414a6363556b64745a3871694b7874454c4b356d72664c7851436f7141417a4b5120......e3a22314761485970576d71414a7371527772706f4e6342385676674b7453776a63487174",
    "payAddr":"1FdiWH5VDA564eU......yM4GDaZqKS2P",
    "expire":"30s"
    }
    ]
    }'

统计用户地址收到的币有误

浏览器调用 Chain33.GetAddrOverview 获得的信息不对, balance > Received. 导致 Send 计算出来为负值

https://mainnet.bityuan.com/address/19tjS51kjwrCoSQS13U3owe7gYBLfSfoFm

{"id":1695719472613,"jsonrpc":"2.0","method":"Chain33.GetAddrOverview","params":[{"addr":"0x00f1d135727a66bee1d8fe7ea3a8a1a9eecab6f2"}]}

{
    "id": 1695719472613,
    "result": {
        "reciver": 10330000000,
        "balance": 34078907915,
        "txCount": 9
    },
    "error": null
}

看交易记录, 应该是通过evm方式转账这种方式的收币没有被统计进来

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Cannot push to the Git repository.

semantic-release cannot push the version tag to the branch master on the remote Git repository with URL https://[secure]@github.com/bityuan/bityuan.

This can be caused by:


Good luck with your project ✨

Your semantic-release bot 📦🚀

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.