- Would it make sense for this new test to be in p2p_tx_download.pywhere we have similar testing?
- Perhaps also test that tx_getdata_countis/can be greater than zero once out of IBD?
A few PEP8 suggestions and (maybe, IIUC) a clarifying constant:
 0--- a/test/functional/p2p_ibd_txrelay.py
 1+++ b/test/functional/p2p_ibd_txrelay.py
 2@@ -8,6 +8,7 @@
 3 """ 
 4 from decimal import Decimal
 5+import time
 6 
 7@@ -25,10 +26,10 @@ from test_framework.util import (
 8-import time
 9 
10 MAX_FEE_FILTER = Decimal(9170997) / COIN
11 NORMAL_FEE_FILTER = Decimal(100) / COIN
12+WTXID = 0xffaa
13 
14@@ -43,7 +44,7 @@ class P2PIBDTxRelayTest(BitcoinTestFramework):
15         peer = self.nodes[0].add_p2p_connection(P2PInterface())
16-        peer.send_message(msg_inv([CInv(t=MSG_WTX, h=0xffaa)]))
17+        peer.send_message(msg_inv([CInv(t=MSG_WTX, h=WTXID)]))
18
19@@ -73,5 +74,6 @@ class P2PIBDTxRelayTest(BitcoinTestFramework):
20         self.test_feefilter_ibd()
21 
22+
23 if __name__ == '__main__':
0--- a/test/functional/test_framework/p2p.py
1+++ b/test/functional/test_framework/p2p.py
2@@ -122,7 +122,7 @@ MAGIC_BYTES = {
3 
4 # Constants from net_processing
5 NONPREF_PEER_TX_DELAY = 2  # seconds
6-TXID_RELAY_DELAY = 2 # seconds
7+TXID_RELAY_DELAY = 2  # seconds