anchor.diff:      Bal1 = aec_accounts:balance(Acc1),
       Bal2 = aec_accounts:balance(Acc2),
   
  -    %% Node1 has mined 4 blocks, but should only get 3 rewards (fraud)
  -    %% Node2 has mined 3 blocks, but should only get 1 reward (delay)
  -    %%          + 1 fraud reward.
  +    %% Node1 has mined N1KeyBlocksCount blocks, but should only get N1KeyBlocksCount - 1 rewards (fraud)
  +    %% Node2 has mined N2KeyBlocksCount blocks, but should only get N2KeyBlocksCount - 2 rewards (delay)
  +    %%                                                                               + 1 fraud reward.
       MR = aec_governance:block_mine_reward(),
       FR = aec_governance:fraud_report_reward(),
  -    case Bal1 >= 3 * MR andalso Bal1 < 3 * MR + 10 of %% should get some fees
  +    case Bal1 >= (N1KeyBlocksCount - 1) * MR andalso Bal1 < (N1KeyBlocksCount - 1) * MR + 10 of %% should get some fees
           true -> ok;
           false -> error({bad_balance1, Bal1})
       end,
  -    case Bal2 >= 1 * MR + FR andalso Bal2 < 1 * MR + FR + 10 of
  +    case Bal2 >= (N2KeyBlocksCount - 2) * MR + FR andalso Bal2 < (N2KeyBlocksCount - 2) * MR + FR + 10 of
           true -> ok;
           false -> error({bad_balance2, Bal2})
       end,
  
positive.code:                          {ok, aec_pof:pubkey(PoF)})
      end,
  
      check_post(N1, N2),
  
      ok.
  
  
negative.code:                     167,173,228,112,201,249,157,157,78,64,8,128,168,111,29,73,
                      187,68,75,98,241,26,158,187,100,187,207,235,115,254,243>>
        }.
  
  key_blocks_count(Blocks) ->
      length(lists:filter(fun aec_blocks:is_key_block/1, Blocks)).
  