aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/sendheaders.py
Commit message (Collapse)AuthorAgeFilesLines
* [qa] Respond to getheaders and do not assume a getdata on invMatt Corallo2016-11-071-6/+5
|
* [qa] Fix race condition in sendheaders.pySuhas Daftuar2016-10-061-42/+26
| | | | Also de-duplicates code that has been moved to mininode
* Add test for handling of unconnecting headersSuhas Daftuar2016-07-121-0/+105
|
* [qa] Remove hardcoded "4 nodes" from test_frameworkMarcoFalke2016-05-151-3/+5
|
* [qa] Switch to py3MarcoFalke2016-05-051-23/+22
|
* Merge #7300: [trivial] Add missing copyright headersWladimir J. van der Laan2016-01-271-1/+1
|\ | | | | | | | | | | fabcee1 Remove copyright header from autogenerated chainparamsseeds.h (MarcoFalke) fa60d05 Add missing copyright headers (MarcoFalke) fa7e4c0 Bump copyright headers to 2014 (MarcoFalke)
| * Add missing copyright headersMarcoFalke2016-01-051-1/+1
| |
* | [qa] Fix pyton syntax in rpc testsMarcoFalke2016-01-131-2/+1
| |
* | Eliminate race condition in sendheaders.py testSuhas Daftuar2016-01-071-9/+9
|/ | | | Clear the last block announcement before mining new blocks.
* test: remove necessity to call create_callback_mapWladimir J. van der Laan2015-12-041-1/+0
| | | | | | | | | | 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
* When not filtering blocks, getdata sends more in one testPieter Wuille2015-11-301-1/+1
|
* Allow block announcements with headersSuhas Daftuar2015-11-291-0/+519
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