palutz / btc-handshake

Simple test to handshake a Bitcoin node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

btc-handshake

Rust Version crates.io Documentation Dependency Status

How to run it

Download the Bitcoin core implementation (source or binary) and then run:

$ bitcoind -regtest -daemon

From the root folder of the project, run:

make run

and the program will make an handshake with the Bitcion Core node.

Design

The program is hugely simplified. For this test I decided to:

  • reduce the dependencies to external libraries
  • deal only with IPv4 addresses
  • deal only with local nodes (hardcoded localhost address)
  • Simplified management of the messages
  • almost no error management

About

Simple test to handshake a Bitcoin node


Languages

Language:Rust 95.3%Language:Makefile 4.7%