1) the file xmr.cpp had a wrong typecast not updated after the fork.
txout_to_key passes to txout_to_tagged_key. (thx to jeffro256)
2) In the file pool.c it is assumed that "bstack(bst)" always has the actual "top" when invoking the method "miner_on_block_template". If so, the pool defines for the miners which network height and difficulty is current. This is also present in the static variables pool_stats.network_difficulty and pool_stats.network_height.
1) the file xmr.cpp had a wrong typecast not updated after the fork. txout_to_key passes to txout_to_tagged_key. (thx to jeffro256)
2) In the file pool.c it is assumed that "bstack(bst)" always has the actual "top" when invoking the method "miner_on_block_template". If so, the pool defines for the miners which network height and difficulty is current. This is also present in the static variables pool_stats.network_difficulty and pool_stats.network_height.