aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework/mininode.py
AgeCommit message (Collapse)Author
2017-03-20Rename qa directory to testJohn Newbery
2017-03-09Always enable debug log and microsecond logging for test nodes.John Newbery
2017-03-09Use logging in mininode.pyJohn Newbery
This commit adds a TestFramework.mininode Logger to the mininode module. This is a child logger of TestFramework, so the handlers set up in test_framework.py will receive records from this logger and emit them to the log file and console as appropriate.
2017-02-23Fix docstrings in qa testsJohn Newbery
This commit fixes the module-level docstrings for the tests and helper modules in qa. Many of these tests were uncommented previously - this commit ensures that every test case has at least a minimum level of commenting.
2017-02-08qa: Expose on-connection to mininode listenersMatt Corallo
2017-02-08qa: mininode learns when a socket connects, not its first actionMatt Corallo
2016-11-21Make test constant consistent with consensus.hBtcDrak
2016-11-09Fix mininode version message formatjnewbery
2016-10-04[qa] Add support for compactblocks v2 to mininodeSuhas Daftuar
2016-10-04[qa] Fix bug in mininode witness deserializationSuhas Daftuar
Also improve tx printing
2016-10-02[qa] mininode: Only allow named args in wait_untilMarcoFalke
2016-09-30[qa] Fix race condition in p2p-compactblocks testSuhas Daftuar
Also fix a bug in the sync_with_ping() helper function
2016-07-29Add support for compactblocks to mininodeSuhas Daftuar
2016-07-29Tests: refactor compact size serialization in mininodeSuhas Daftuar
2016-07-06Rename CTxinWitness -> CTxInWitnessBob McElrath
2016-06-22[qa] p2p segwit testsSuhas Daftuar
mininode now supports witness transactions/blocks, blocktools has a helper for adding witness commitments to blocks, and script has a function to calculate hashes for signature under sigversion 1, used by segwit. Py3 conversion by Marco Falke Test to make sure upgraded nodes don't ask for non-wit blocks by Gregory Sanders.
2016-06-17[qa] mininode: fail on send_message instead of silent returnMarcoFalke
2016-06-02Continuing port of java comptoolmrbandrews
2016-05-31Tests: Rework blockstore to avoid re-serialization.mrbandrews
2016-05-05[qa] Switch to py3MarcoFalke
2016-04-23[qa] mininode: Unfiddle strings into bytesMarcoFalke
2016-04-20Tests: Fix deserialization of reject messagesSuhas Daftuar
Assume that reject messages for blocks or transactions due to reason REJECT_MALFORMED will not include the hash of the block or tx being rejected.
2016-04-10[qa] py2: Unfiddle strings into bytes explicitlyMarcoFalke
2016-04-02[qa] mininode: Combine struct.pack format stringsMarcoFalke
2016-04-01[qa] mininode: Catch exceptions in got_dataMarcoFalke
2016-04-01[qa] rpc-tests: Properly use integers, floatsMarcoFalke
2016-03-31[qa] Use python2/3 syntaxMarcoFalke
2016-03-21Add p2p test for feefilterAlex Morcos
2016-03-21Create SingleNodeConnCB class for RPC testsAlex Morcos
2016-03-14[qa] mininode: Add and use CONSTsMarcoFalke
2016-02-12Merge #7184: Implement SequenceLocks functions for BIP 68Wladimir J. van der Laan
b043c4b fix sdaftuar's nits again (Alex Morcos) a51c79b Bug fix to RPC test (Alex Morcos) da6ad5f Add RPC test exercising BIP68 (mempool only) (Suhas Daftuar) c6c2f0f Implement SequenceLocks functions (Alex Morcos)
2016-02-10Add RPC test exercising BIP68 (mempool only)Suhas Daftuar
2016-02-04[rpc-tests] Change solve() to use rehashmrbandrews
2016-01-07Add race-condition debugging tool to mininodeSuhas Daftuar
2015-12-18Add more tests to p2p-fullblocktestSuhas Daftuar
2015-12-04test: remove necessity to call create_callback_mapWladimir J. van der Laan
Remove necessity to call create_callback_map (as well as the function itself) from the Python P2P test framework. Invoke the appropriate methods directly. - Easy to forget to call it and wonder why it doesn't work - Simplifies the code - This makes it easier to handle new messages in subclasses
2015-11-29Allow block announcements with headersSuhas Daftuar
This replaces using inv messages to announce new blocks, when a peer requests (via the new "sendheaders" message) that blocks be announced with headers instead of inv's. Since headers-first was introduced, peers send getheaders messages in response to an inv, which requires generating a block locator that is large compared to the size of the header being requested, and requires an extra round-trip before a reorg can be relayed. Save time by tracking headers that a peer is likely to know about, and send a headers chain that would connect to a peer's known headers, unless the chain would be too big, in which case we revert to sending an inv instead. Based off of @sipa's commit to announce all blocks in a reorg via inv, which has been squashed into this commit. Rebased-by: Pieter Wuille
2015-05-18[QA] restructure rpc tests directoryJonas Schnelli
* move non-test classes to subdir `test-framework`