I post the idea of changing coin reward based on difficulty to the hard fork page, but here should be the technical discussion. I'll edit this post later to insert the code.
In the chart where it says CoinReward, it has two sum's that should be avg's.
Although it brutally discourages hash attacks, it also is brutal after the attack to constant miners for about 5 blocks with low fees and high difficulty. It acts like raising the difficulty twice as fast in response to an attack, but I was not able to devise an equation for difficulty that would act that fast without causing other problems.
I post the idea of changing coin reward based on difficulty to the hard fork page, but here should be the technical discussion. I'll edit this post later to insert the code.
In the chart where it says CoinReward, it has two sum's that should be avg's.
https://github.com/Bitcoin-UAHF/spec/issues/27
Although it brutally discourages hash attacks, it also is brutal after the attack to constant miners for about 5 blocks with low fees and high difficulty. It acts like raising the difficulty twice as fast in response to an attack, but I was not able to devise an equation for difficulty that would act that fast without causing other problems.