make ApplyHash and ApplyStats take a TxId
Summary:
These functions work with transactions, so a TxId is better than a generic uint256.
Depends on D11156
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D11162