@@ -0,0 +1,1189 @@
+package com.google.bitcoin.tools;%0A%0Aimport com.google.bitcoin.core.*;%0Aimport com.google.bitcoin.discovery.DnsDiscovery;%0Aimport com.google.bitcoin.params.MainNetParams;%0Aimport com.google.bitcoin.utils.BriefLogFormatter;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Apublic class WatchMempool %7B%0A    private static Logger log = LoggerFactory.getLogger(WatchMempool.class);%0A%0A    public static void main(String%5B%5D args) %7B%0A        BriefLogFormatter.init();%0A        NetworkParameters params = MainNetParams.get();%0A        PeerGroup peerGroup = new PeerGroup(params);%0A        peerGroup.addPeerDiscovery(new DnsDiscovery(params));%0A        peerGroup.addEventListener(new AbstractPeerEventListener() %7B%0A            @Override%0A            public void onTransaction(Peer peer, Transaction tx) %7B%0A                try %7B%0A                    if (tx.getOutputs().size() != 1) return;%0A                    if (!tx.getOutput(0).getScriptPubKey().isSentToRawPubKey()) return;%0A                    log.info(%22Saw raw pay to pubkey %7B%7D%22, tx);%0A                %7D catch (ScriptException e) %7B%0A                    e.printStackTrace();%0A                %7D%0A            %7D%0A        %7D);%0A        peerGroup.start();%0A    %7D%0A%7D%0A

Add a tool to watch for broadcasts of rotation transactions.