Bitcoin Institute

[ANN] pynode: Simple bitcoin P2P node

1 messages BitcoinTalk Jeff Garzik July 22, 2012 — July 22, 2012

Github URL: https://github.com/jgarzik/pynode

pynode is a simple bitcoin P2P client, originally based on ArtForz’ half-a-node, which maintains a blockchain database and TX memory pool.  All bitcoin-related code is separated into a “bitcoin” module, permitting you to use core features such as CBlock or P2P message serialization, without actually using the node itself.

Therefore, pynode has two goals:

  1. As a generic “python-bitcoin” library, for any project.  Update: Now a separate project, https://github.com/jgarzik/python-bitcoinlib
  2. As a P2P node that may be used as a base for other projects, such as a network monitoring node or P2P proxy.

At present, it is mainly for developers and not end users.  Here is what pynode does not do:

  • key management (wallet)

Here are the limited things that pynode can do at present:

  • Outgoing TCP connection to a single remote P2P node
  • Initial blockchain download
  • Maintain a transaction memory pool, with TX’s removed as they are confirmed in blocks
  • Maintain an indexed blockchain database
  • Respond to JSON-RPC requests via an internal HTTP server

Over time it will become more capable, but this is an alpha quality release for developers at present.