이전에 CPP-Ethereum Project로 알려진 Ethereum 용 C ++ 라이브러리 및 도구 모음. 여기에는 전체 이더 리움 클라이언트 Aleth가 포함됩니다.
이더 리움 문서 사이트는 Aleth HomePage를 호스팅하며 빠른 시작 섹션이 있습니다.
| 운영 체제 | 상태 |
|---|---|
| 우분투와 마코스 | |
| 창 |
https://github.com/ethereum/aleth/releases
Aleth :
docker run ethereum/aleth --help테스트 :
docker run ethereum/testeth --helpGit 및 Github는 소스 코드를 유지하는 데 사용됩니다. 저장소를 복제합니다.
git clone --recursive https://github.com/ethereum/aleth.git
cd aleth --recursive 옵션이 중요합니다. 그것은 프로젝트를 구축하기 위해 추가 서브 모듈을 복제하도록 GIT를 명령합니다. --recursive 옵션을 놓친 경우 명령 git submodule update --init 로 실수를 바로 잡을 수 있습니다.
CMAKE는 프로젝트의 빌드 구성을 제어하는 데 사용됩니다. 최신 버전의 CMake가 필요합니다 (3.9.3을 작성하는 시점에서 최소). Cmake 다운로드 페이지 에서 사용 가능한 최신 버전의 이진 배포를 다운로드하고 풀어 CMake를 설치하는 것이 좋습니다.
운영 체제에서 사용 가능한 CMAKE 패키지는 최소 버전 요구 사항을 충족하는 경우 설치 및 사용할 수도 있습니다.
대체 방법
저장소에는 고정 된 버전의 CMake를 다운로드하고 주어진 디렉토리 접두사로 포장을 풀어주는 스크립트/install_cmake.sh 스크립트가 포함되어 있습니다. 예제 사용 :
scripts/install_cmake.sh --prefix /usr/local.
다음 명령으로 프로젝트 빌드를 구성하여 구성으로 build 디렉토리를 만듭니다.
mkdir build ; cd build # Create a build directory.
cmake .. # Configure the project.
cmake --build . # Build all default targets. Windows 에서는 Visual Studio 2017 및 2019를 지원합니다. 다음 명령을 통해 64 비트 아키텍처에 대한 Visual Studio 솔루션 파일 ( .sln )을 생성해야합니다.
cmake .. -G "Visual Studio 15 2017 Win64"cmake .. -G "Visual Studio 16 2019" -A x64 필요한 종속성이 다운로드 및 구축 된 후 솔루션이 생성 된 후에는 aleth.sln build 디렉토리에서 찾을 수 있습니다.
RC.exe는 Microsoft Resource Compiler입니다. Windows SDK와 함께 배포되며 Visual Studio 솔루션 파일을 생성하려면 필요합니다. 다음 디렉토리 %ProgramFiles(x86)%Windows Kits<OS major version>bin<OS full version><arch> 찾을 수 있습니다.
이 오류에 도달하면 경로에 디렉토리를 추가하고 새 명령 프롬프트를 시작하면 문제가 해결됩니다.
현재 코드베이스는 많은 많은 손의 작업이며, 개발 과정에서 100 명 이상의 개인 기고자가 있습니다.
우리의 일상적인 개발 채팅은 Aleth Gitter 채널에서 발생합니다.
모든 기부금을 환영합니다! 우리는 TAG 도움말하에 새로운 이민자에게 적합한 작업 목록을 유지하려고 노력합니다. 궁금한 점이 있으시면 주저하지 말고 더 많은 정보에 대해 문의하십시오.
코드 기반을 변경하기 전에 기여 및 Coding_style을 철저히 읽으십시오.
모든 개발은 개발 지점에 있습니다.
참고 : 다음은 Linux에서 ./aleth -h [--help] 의 출력입니다.
NAME:
aleth 1.7.2
USAGE:
aleth [options]
WALLET USAGE:
account list List all keys available in wallet
account new Create a new key and add it to wallet
account update [<uuid>|<address> , ... ] Decrypt and re-encrypt keys
account import [<uuid>|<file>|<secret-hex>] Import keys from given source and place in wallet
wallet import <file> Import a presale wallet
CLIENT MODE (default):
--mainnet Use the main network protocol
--ropsten Use the Ropsten testnet
--test Testing mode; disable PoW and provide test rpc interface
--config <file> Configure specialised blockchain using given JSON information
--ipc Enable IPC server (default: on)
--ipcpath <path> Set .ipc socket path (default: data directory)
--no-ipc Disable IPC server
--admin <password> Specify admin session key for JSON-RPC (default: auto-generated and printed at start-up)
-K [ --kill ] Kill the blockchain first
-R [ --rebuild ] Rebuild the blockchain from the existing database
--rescue Attempt to rescue a corrupt database
--import-presale <file> Import a pre-sale key; you'll need to specify the password to this key
-s [ --import-secret ] <secret> Import a secret key into the key store
-S [ --import-session-secret ] <secret> Import a secret session into the key store
--master <password> Give the master password for the key store; use --master "" to show a prompt
--password <password> Give a password for a private key
CLIENT TRANSACTING:
--ask <wei> Set the minimum ask gas price under which no transaction will be mined (default: 20000000000)
--bid <wei> Set the bid gas price to pay for transactions (default: 20000000000)
--unsafe-transactions Allow all transactions to proceed without verification; EXTREMELY UNSAFE
CLIENT NETWORKING:
-b [ --bootstrap ] Connect to the default Ethereum peer servers (default unless --no-discovery used)
--no-bootstrap Do not connect to the default Ethereum peer servers (default only when --no-discovery is used)
-x [ --peers ] <number> Attempt to connect to a given number of peers (default: 11)
--peer-stretch <number> Give the accepted connection multiplier (default: 7)
--public-ip <ip> Force advertised public IP to the given IP (default: auto)
--listen-ip <ip>(:<port>) Listen on the given IP for incoming connections (default: 0.0.0.0)
--listen <port> Listen on the given port for incoming connections (default: 30303)
-r [ --remote ] <host>(:<port>) Connect to the given remote host (default: none)
--port <port> Connect to the given remote port (default: 30303)
--network-id <n> Only connect to other hosts with this network id
--allow-local-discovery Include local addresses in the discovery process. Used for testing purposes.
--peerset <list> Comma delimited list of peers; element format: type:enode://publickey@ipAddress[:port[?discport=port]]
Types:
default Attempt connection when no other peers are available and pinning is disabled
required Keep connected at all times
Ports:
The first port argument is the tcp port used for direct communication among peers. If the second port
argument isn't supplied, the first port argument will also be the udp port used for node discovery.
If neither the first nor second port arguments are supplied, a default port of 30303 will be used for
both peer communication and node discovery.
--no-discovery Disable node discovery; implies --no-bootstrap
--pin Only accept or connect to trusted peers
CLIENT MINING:
-a [ --address ] <addr> Set the author (mining payout) address (default: auto)
-m [ --mining ] <on/off/number> Enable mining; optionally for a specified number of blocks (default: off)
--extra-data arg Set extra data for the sealed blocks
BENCHMARKING MODE:
-M [ --benchmark ] Benchmark for mining and exit
--benchmark-warmup <seconds> Set the duration of warmup for the benchmark tests (default: 3)
--benchmark-trial <seconds> Set the duration for each trial for the benchmark tests (default: 3)
--benchmark-trials <n> Set the number of trials for the benchmark tests (default: 5)
MINING CONFIGURATION:
-C [ --cpu ] When mining, use the CPU
-t [ --mining-threads ] <n> Limit number of CPU/GPU miners to n (default: use everything available on selected platform)
--current-block <n> Let the miner know the current block number at configuration time. Will help determine DAG size and required GPU memory
--disable-submit-hashrate When mining, don't submit hashrate to node
IMPORT/EXPORT MODES:
-I [ --import ] <file> Import blocks from file
-E [ --export ] <file> Export blocks to file
--from <n> Export only from block n; n may be a decimal, a '0x' prefixed hash, or 'latest'
--to <n> Export only to block n (inclusive); n may be a decimal, a '0x' prefixed hash, or 'latest'
--only <n> Equivalent to --export-from n --export-to n
--format <binary/hex/human> Set export format
--dont-check Prevent checking some block aspects. Faster importing, but to apply only when the data is known to be valid
--download-snapshot <path> Download Parity Warp Sync snapshot data to the specified path
--import-snapshot <path> Import blockchain and state data from the Parity Warp Sync snapshot
DATABASE OPTIONS:
--db <name> (=leveldb) Select database implementation. Available options are: leveldb, memorydb.
--db-path <path> (=$HOME/.ethereum) Database path (for non-memory database options)
VM OPTIONS:
--vm <name>|<path> (=legacy) Select VM implementation. Available options are: interpreter, legacy.
--evmc <option>=<value> EVMC option
LOGGING OPTIONS:
-v [ --log-verbosity ] <0 - 4> Set the log verbosity from 0 to 4 (default: 2).
--log-channels <channel_list> Space-separated list of the log channels to show (default: show all channels).
Channels: block blockhdr bq chain client debug discov error ethcap exec host impolite info net overlaydb p2pcap peer
rlpx rpc snap statedb sync timer tq trace vmtrace warn warpcap watch
--log-exclude-channels <channel_list> Space-separated list of the log channels to hide.
--log-vmtrace Enable VM trace log (requires log-verbosity 4).
GENERAL OPTIONS:
-d [ --data-dir ] <path> Load configuration files and keystore from path (default: $HOME/.ethereum)
-V [ --version ] Show the version and exit
-h [ --help ] Show this help message and exit
Aleth Project에는 Aleth 클라이언트 외에도 다음 도구가 포함되어 있습니다.
이 프로젝트는 Ethminer 채굴에 적합하지 않습니다. Ethminer 도구를 포함하여 얼마 전에 GPU 채굴에 대한 지원이 중단 되었기 때문입니다. https://github.com/ethereum-mining/ethminer의 Ethminer 도구를 사용하십시오.
테스트를 실행하고 디버깅하는 방법에 대한 자세한 내용은 여기에서 찾을 수 있습니다.
모든 기부금은 GNU General Public License V3에 따라 이루어집니다. 라이센스를 참조하십시오.