Merge #11032: [qa] Fix block message processing error in sendheaders.py

f1bf31186 [qa] Fix block message processing error in sendheaders.py (Suhas Daftuar)

Pull request description:

  Introduced in #10169

  @jnewbery

Tree-SHA512: f330b926c51bd4f1b63738e1ddac23c58cb32345baed36343f7a989b3b9906c5c6e7dbd74b416f662c6ef68b8d256a6c69a977ec5f85789b2c1dc802bc831f6b
This commit is contained in:
MarcoFalke 2017-08-12 13:22:29 +02:00 committed by Pasta
parent e5c94eea0f
commit 7f3d3deda7
No known key found for this signature in database
GPG Key ID: D362C9F7142766AE

View File

@ -132,9 +132,6 @@ class TestNode(NodeConnCB):
message.headers[-1].calc_sha256() message.headers[-1].calc_sha256()
self.last_blockhash_announced = message.headers[-1].sha256 self.last_blockhash_announced = message.headers[-1].sha256
def on_block(self, conn, message):
self.last_message["block"].calc_sha256()
# Test whether the last announcement we received had the # Test whether the last announcement we received had the
# right header or the right inv # right header or the right inv
# inv and headers should be lists of block hashes # inv and headers should be lists of block hashes