BYTOM 프로토콜의 공식 골란 랑 구현.
자동화 된 빌드는 안정적인 릴리스 및 불안정한 마스터 브랜치에 사용할 수 있습니다. 이진 아카이브는 https://github.com/bytom/bytom/releases에 게시됩니다.
Bytom은 Bytom 블록 체인 프로토콜을 확인하는 고도로 확장 가능한 블록 체인 네트워크에 작동하고 연결하도록 설계된 소프트웨어로, Partipicants는 다중 자산 공유 원장에서 디지털 자산을 정의, 발행 및 전송할 수 있습니다. 자세한 내용은 백서를 참조하십시오.
현재 상태에서 bytom
다음을 수행 할 수 있습니다.
brew tap bytom/bytom && brew install bytom
$GOPATH
선호하는 디렉토리로 설정된 Go 버전 1.8 이상지원되는 버전이 올바르게 설치되어 있는지 확인하십시오.
$ go version
$ go env GOROOT GOPATH
$ git clone https://github.com/Bytom/bytom.git $GOPATH /src/github.com/bytom/bytom
$ cd $GOPATH /src/github.com/bytom/bytom
$ make bytomd # build bytomd
$ make bytomcli # build bytomcli
프로젝트를 성공적으로 구축 할 때 bytomd
및 bytomcli
바이너리는 각각 cmd/bytomd
및 cmd/bytomcli
디렉토리에 있어야합니다.
Bytom 프로젝트에는 cmd
디렉토리에있는 몇 가지 실행 파일이 제공됩니다.
명령 | 설명 |
---|---|
바이 토드 | BYTOMD 명령은 사용자 정의 매개 변수로 Bytom 도메인을 초기화하고 시작하는 데 도움이 될 수 있습니다. bytomd --help 명령 줄 옵션을위한 help. |
바이토 클리 | 우리의 주요 Bytom CLI 클라이언트. BYTOM 네트워크 (메인, 테스트 또는 개인 네트)의 진입 점은 전체 노드 아카이브 노드 (모든 역사적 상태를 유지)로 실행할 수 있습니다. HTTP, WebSocket 및/또는 IPC 전송 위에 노출 된 JSON RPC 엔드 포인트를 통해 BYTOM 네트워크로의 게이트웨이로서 다른 프로세스에서 사용할 수 있습니다. bytomcli --help 명령 줄 옵션에 대한 BYTOMCLI WIKI 페이지. |
현재 Bytom은 여전히 적극적으로 개발 중이며 많은 작업을 수행해야하지만 bytom
과 함께 무언가를하기 위해 다음과 같은 내용을 제공합니다. 이 섹션에서는 bytomd
및 bytomcli
의 모든 명령을 오랫동안 다루지는 않습니다. 자세한 내용은 모든 명령의 도움 (예 : bytomcli help
의 도움을 받으십시오.
우선, 노드 초기화 :
$ cd ./cmd/bytomd
$ ./bytomd init --chain_id mainnet
플래그에 대한 세 가지 옵션 --chain_id
에 대한 세 가지 옵션이 있습니다.
mainnet
: 메인 넷에 연결하십시오.testnet
: TestNet 지혜에 연결하십시오.solonet
: 독립형 모드. 그런 다음 config.toml
생성 된 다음 노드를 시작합니다.
$ ./bytomd node
bytomd node
에 사용 가능한 플래그 :
Flags:
--auth.disable Disable rpc access authenticate
--chain_id string Select network type
-h, --help help for node
--log_file string Log output file (default "log")
--log_level string Select log level(debug, info, warn, error or fatal)
--p2p.dial_timeout int Set dial timeout (default 3)
--p2p.handshake_timeout int Set handshake timeout (default 30)
--p2p.keep_dial string Peers addresses try keeping connecting to, separated by ',' (for example "1.1.1.1:46657;2.2.2.2:46658")
--p2p.laddr string Node listen address. (0.0.0.0:0 means any interface, any port) (default "tcp://0.0.0.0:46656")
--p2p.lan_discoverable Whether the node can be discovered by nodes in the LAN (default true)
--p2p.max_num_peers int Set max num peers (default 50)
--p2p.node_key string Node key for p2p communication
--p2p.proxy_address string Connect via SOCKS5 proxy (eg. 127.0.0.1:1086)
--p2p.proxy_password string Password for proxy server
--p2p.proxy_username string Username for proxy server
--p2p.seeds string Comma delimited host:port seed nodes
--p2p.skip_upnp Skip UPNP configuration
--prof_laddr string Use http to profile bytomd programs
--vault_mode Run in the offline enviroment
--wallet.disable Disable wallet
--wallet.rescan Rescan wallet
--wallet.txindex Save global tx index
--web.closed Lanch web browser or not
--ws.max_num_concurrent_reqs int Max number of concurrent websocket requests that may be processed concurrently (default 20)
--ws.max_num_websockets int Max number of websocket connections (default 25)
Global Flags:
--home string root directory for config and data
-r, --root string DEPRECATED. Use --home (default "/Users/zcc/Library/Application Support/Bytom")
--trace print out full stack trace on errors
bytomd
노드가 실행중인 경우 일반 워크 플로우는 다음과 같습니다.
대시 보드 액세스 :
$ open http://localhost:9888/
Docker 버전이 17.05 이상인지 확인하십시오.
$ docker build -t bytom .
사용에 대해서는 Docker Wiki를 참조하십시오.
소스 코드를 도와 주셔서 감사합니다! 모든 기여는 높이 평가되며, 우리는 가장 작은 수정 사항에 대해서도 감사합니다!
문제가 발생하면이 저장소에서 문제를 해결하십시오. 도와 드리겠습니다!
AGPL V3