-blocksonly mode was introduced in
4044f07d1c5eacb0ec732f1232489aa77fb7bb3b and allows nodes to request
that their peers don't relay txs to them. This is done by setting the
'relay' field in the VERSION message (introduced in BIP37) to false.
Tx INVs received from peers when running in blocksonly mode previously resulted in a log message "transaction inv sent in violation of protocol". When running in -blocksonly, it has been observed that several peers advertising as Satoshi:0.18.0 were persistently sending us tx INVs in violation of the protocol. These are suspected of being spy nodes.
Change the behaviour to disconnect nodes that send us tx INVs after we've requested no tx relay.