Yup, that’s where I am, but at the server end of things rather than the miner.
The merkleroot is a hash of the transactions (hashed with what?) and some extra detail from getblocktemplate like the coinbase, etc. Trying to generate it rather than mine with it.
Maybe fn() is in one of these curcuit or maybe in the incrementalmerkles (in the 2nd theres a merklepath fn) (im sorry for the goose chase, this is current)
It’s funny cuz looking at it I actually kind of understand it a little because it’s in Rust!
I’ll look through it more tomorrow
Found a vague reference to recursively hashing the transactions ids in the block template with SHA-256 to get part of the merkleroot, not sure if that’s even relevant to Zcash but will give it a try.
There’s other stuff that has to be appended to the tx hash, guessing that follows the BTC method so at least I have a starting point.
Amazing lack of information out there (maybe my ‘google-fu’ is lacking), getting detail on mining/miners is like trying to research state secrets.