Not sure if this is a dumb question, but is there a way to track the hashes or block headers my BTC Antminer is sending to the pool? Can I just use my own subnet traffic or do I need to check with the pool directly for this info? I saw something in the paper about viewing this kind of traffic. Just wondering how to set it up...
Monitoring Mining Traffic to Pool
7 replies 316 views
Not a dumb question. But honestly, you probably can't just watch traffic like that. What are you aiming to do? Why not just check it directly from the pool or look at your miner's IP for its status? Or are you thinking about using API calls to grab data from your miner?
Stratum isn't really secure, so you could technically reconstruct the TCP traffic between your miner and the pool server. But Stratum V2, which Braiins is working on, does encrypt data in transit. It’s not standard yet though. If you just wanna see shares sent back to the pool, it's easier to check the miner's dashboard or use the API.
token_laserMember
Posts: 145 · Reputation: 208
#4Jan 2, 2019, 05:35 AM
The packets are mostly text and should be readable... unless your firmware is encrypting them.
54toshi_kingMember
Posts: 1 · Reputation: 93
#5Jan 2, 2019, 11:04 AM
It’s actually pretty easy. You just need a TCP proxy between your miner and the pool. I use this Python proxy all the time. Just change the host and port at the top and set the listening interface at the bottom. Simple as that.
I doubt it’s that straightforward because everything goes through mining pools, and they don’t just share data like that. Unless they’re solving for something unique, I don’t see how you’d get that info easily. Not everyone’s a techy either.
Yeah, I kinda agree with you there. But like the other guy said, a proxy could work well. There are plenty of Stratum proxies available, some are really simple to set up.
wallet_vaultFull Member
Posts: 321 · Reputation: 431
#8Jan 3, 2019, 09:13 PM
No need for a proxy, dude. Wireshark is where it’s at. You can see almost everything happening on your network and it does a great job of reassembling conversations from source to destination. Depending on your network setup, you might need to tweak some things to catch all the data.