Repository navigation
Expand functional zmq transaction tests - #19507
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
There was a problem hiding this comment.
Concept ACK, notifier order still exists but from the client side we don't have to worry about order involving different messages.
With this change we no longer test receiving different messages in the same socket. This could be done in a small test.
| # Mining the block with this tx should result in second notification | ||
| # after coinbase tx notification | ||
| self.nodes[0].generatetoaddress(1, ADDRESS_BCRT1_UNSPENDABLE) | ||
| hashtx.receive() |
There was a problem hiding this comment.
Could test coinbase:
- self.nodes[0].generatetoaddress(1, ADDRESS_BCRT1_UNSPENDABLE)
- hashtx.receive()
- txid = hashtx.receive()
- assert_equal(payment_txid, txid.hex())
+ hash = self.nodes[0].generatetoaddress(1, ADDRESS_BCRT1_UNSPENDABLE)[0]
+ coinbase_txid = self.nodes[0].getblock(hash)['tx'][0]
+ assert_equal(coinbase_txid, hashtx.receive().hex())
+ assert_equal(payment_txid, hashtx.receive().hex())|
code review ACK 7356292 |
|
Code review ACK 7356292.
@instagibbs will you update this branch? |
|
@promag not really no, heh. Removed the "yet" in OP. |
…ional test Summary: bitcoin/bitcoin@e70512a --- Depends on D7345 Partial backport of Core [[bitcoin/bitcoin#19507 | PR19507]] Test Plan: test_runner.py interface_zmq Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7346
Summary: bitcoin/bitcoin@2399a06 --- Depends on D7346 Partial backport of Core [[bitcoin/bitcoin#19507 | PR19507]] Test Plan: test_runner.py interface_zmq Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7347
Summary: bitcoin/bitcoin@a0f4f9c --- note: disconnect_cb variable isn't used in this commit, it is and will be introduced in the next Depends on D7347 Partial backport of Core [[bitcoin/bitcoin#19507 | PR19507]] Test Plan: test_runner.py interface_zmq Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7348
Summary: bitcoin/bitcoin@7356292 --- Depends on D7348 Concludes backport of Core [[bitcoin/bitcoin#19507 | PR19507]] Test Plan: test_runner.py interface_zmq Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7349
Tests written to better define what messages are sent when. Also did a bit of refactoring to make sure the exact notification channel ordering doesn't matter.
Confusions below aside, I believe having these more descriptive tests helps describe what behavior we expect from ZMQ notificaitons.
Remaining confusion: