I'm still new to understanding how the mining rewards work though,but I'm just curious, Does this this mining pool that included this transaction in the block 978066 automatically received the entire 0.9797 BTC as an additional earnings ?
The miner's (in majority of cases it's mining pools) mining reward is the sum of the current block subsidy (in current epoch 3.125
BTC) plus the sum of all transaction fees of included transactions in the newly mined block. It's the so-called Coinbase transaction which has to be the first in a block.
Block
#978066 was mined by SpiderPool and they cashed in 3.125
BTC plus 1.02534835
BTC in tx fees for a total sum of 4.15034835
BTC. The largest part of the tx fees was of course from the "generous" transaction fee of tx
4d4fd16c8c7add18612adb8c10339bd355f69ecbbdfb4d53d96b1e7e42e38de4.
The first three transactions of block #978066 are actually the Coinbase tx (1), then comes the first tx (2) spending the old 1
BTC and then the "generous" CPFP one (3) spending the output of (2). Both transactions I was talking about have to be in that order otherwise the block would be invalid and rejected by nodes (child tx must come after parent tx, not necessarily directly after each other).
...
It should be either a mistake or a pool was just trying to to dominate a block by mining that particular transaction But I don’t know how often that happens.
If you forget to add the change output (why? any sane wallet should make this difficult or warn you),like being silly, drunk, full of drugs or whatnot, the excess of the tx input(s) goes into tx fee, because the difference of sum(tx inputs) minus sum(tx outputs) is the tx fee.
My first impulse was that someone simply forgot the change output. But then there would've been plenty of time to correct the mistake. The transaction had RBF opt-in enabled, so no issues with pesty wallets to do a RBF replacement with it. And all pools allow unconditional RBF replacements anyway, because they have an incentive to do so. Therefore doesn't matter if RBF is enabled or not in the transaction, you can always RBF, as long as you can construct a valid RBF replacement transaction and broadcast it timely enough before the block is mined.
I don't understand how a pool could try to "dominate a block" by mining a particular transaction, especially when that transaction was publicly broadcasted to every mining pool. Every mining pool operator would've seen that block #978066 is particularly valuable while mining on it. Still no pool can force it to be the sole mining winner of that block. A pool's hash dominance share gives them only a statistical probability to succeed in mining.