aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/sendheaders.py
AgeCommit message (Collapse)Author
2016-11-07[qa] Respond to getheaders and do not assume a getdata on invMatt Corallo
2016-10-06[qa] Fix race condition in sendheaders.pySuhas Daftuar
Also de-duplicates code that has been moved to mininode
2016-07-12Add test for handling of unconnecting headersSuhas Daftuar
2016-05-15[qa] Remove hardcoded "4 nodes" from test_frameworkMarcoFalke
2016-05-05[qa] Switch to py3MarcoFalke
2016-01-27Merge #7300: [trivial] Add missing copyright headersWladimir J. van der Laan
fabcee1 Remove copyright header from autogenerated chainparamsseeds.h (MarcoFalke) fa60d05 Add missing copyright headers (MarcoFalke) fa7e4c0 Bump copyright headers to 2014 (MarcoFalke)
2016-01-13[qa] Fix pyton syntax in rpc testsMarcoFalke
2016-01-07Eliminate race condition in sendheaders.py testSuhas Daftuar
Clear the last block announcement before mining new blocks.
2016-01-05Add missing copyright headersMarcoFalke
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-30When not filtering blocks, getdata sends more in one testPieter Wuille
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