HomePhabricator

Python p2p testing framework
6c1d1ba6fccdUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Python p2p testing framework

mininode.py provides a framework for connecting to a bitcoin node over the p2p
network. NodeConn is the main object that manages connectivity to a node and
provides callbacks; the interface for those callbacks is defined by NodeConnCB.
Defined also are all data structures from bitcoin core that pass on the network
(CBlock, CTransaction, etc), along with de-/serialization functions.

maxblocksinflight.py is an example test using this framework that tests whether
a node is limiting the maximum number of in-flight block requests.

This also adds support to util.py for specifying the binary to use when
starting nodes (for tests that compare the behavior of different bitcoind
versions), and adds maxblocksinflight.py to the pull tester.

Details

Provenance
Suhas Daftuar <sdaftuar@gmail.com>Authored on Apr 28 2015, 16:36
deadalnixPushed on May 14 2017, 22:04
Parents
rABC7bf5d5efa60c: Merge pull request #5918
Branches
Unknown
Tags
Unknown

Event Timeline

Suhas Daftuar <sdaftuar@gmail.com> committed rABC6c1d1ba6fccd: Python p2p testing framework (authored by Suhas Daftuar <sdaftuar@gmail.com>).Apr 28 2015, 16:38