블럭체인 2021. 11. 23. 12:22
반응형

작년부터 작업했던 비트코인 소스에 대한 분석 작업을 정리하여 올리고자 합니다.

서비스 구성에 대한 부분은 리눅스로 구축을 하였지만, 소스에 대한 분석 리눅스 환경보다는 개인적으로 Visual studio에서 하는것이 역시 생산성이 높은 듯하다.

 

첫번째 작업은 역시 소스의 다운로드와 컴파일이다.

 

1) git clone https://github.com/bitcoin/bitcoin.git

 

GitHub - bitcoin/bitcoin: Bitcoin Core integration/staging tree

Bitcoin Core integration/staging tree. Contribute to bitcoin/bitcoin development by creating an account on GitHub.

github.com

 

2) https://bitcoin.forum/t/building-bitcoin-core-with-visual-studio/39

빌드 과정

추가적으로 vcpkg와 qt를 버젼에 맞게 구성해놓으면 아래와 같이 정상적으로 빌드가 됩니다.

디버그 버젼: bitcoin\build_msvc>msbuild /m bitcoin.sln /p:Platform=x64 /p:Configuration=Debug /t:build

 

빌드화면
실행파일

[중요바이너리 설명]

1. Bitcoin Core Wallet - Located at \local\bitcoin-qt.exe. Bitcoin Core Wallet is a combination of full Bitcoin peer and wallet frontend.

2. Bitcoin Core Daemon - Located at \local\bitcoind.exe. Bitcoin Core Daemon is the Bitcoin peer, which you can interact with through RPCs to port 8332 (or 18332 for testnet).

3. Bitcoin CLI (Command Line Interface) - Located at \local\bitcoin-cli.exe. Bitcoin CLI allows you to send RPC commands to Bitcoin Daemon (bitcoind).

4. Bitcoin Transaction - Located at \local\bitcoin-tx.exe. Bitcoin Transaction allows you to create and update Bitcoin transactions.

반응형
posted by choiwonwoo
: