anchor.diff:        end,
         NodeNames).
   
  -check_protocol_version_on_node({old, NodeName}, ExpectedProtocolVersion, BlockHash, BlockHeight, Cfg) ->
  -    wait_for_height_syncing(BlockHeight, [NodeName], {{100000, ms}, {1000, blocks}}, Cfg),
  -    {ok, 200, #{version := ProtocolVersion}} =
  -        request(NodeName, 'GetBlockByHashDeprecated', #{hash => BlockHash, tx_encoding => json}, Cfg),
  -    ?assertMatch(ExpectedProtocolVersion, ProtocolVersion);
   check_protocol_version_on_node(NodeName, ExpectedProtocolVersion, BlockHash, BlockHeight, Cfg) ->
       wait_for_height_syncing(BlockHeight, [NodeName], {{100000, ms}, {1000, blocks}}, Cfg),
       {ok, 200, #{version := ProtocolVersion}} =
  
positive.code:         post_contract_tx_and_wait_in_chain(new_node3, PubKey3, Nonce, ContractPubKey, contract_create_tx,
                                             ContractCreateTx, Cfg),
      %% Check protocol version of the block with mined transaction on all nodes.
      check_protocol_version_on_nodes([new_node3, {old, old_node1}, new_node4], OldProtocolVersion,
                                      ContractBlockHash, ContractBlockHeight, Cfg),
      %% Create contract call transaction.
      {ContractCall, DecContractCall} =
  
negative.code:     wait_for_height_syncing(TopHeight, [new_node4], {{100000, ms}, {1000, blocks}}, Cfg),
      ok = mock_pow_on_node(new_node3, Cfg),
      ok = mock_pow_on_node(new_node4, Cfg),
      %% Kill old node - syncing of blocks with contract transactions is not tested.
      aest_nodes:kill_node(old_node1, Cfg),
      %% expected_mine_rate is lowered so contract gets mined faster.
      ErlCmd = make_erl_cmd("application:set_env(aecore, expected_mine_rate, ~p)", [10]),
      ok = run_erl_cmd_on_node(new_node3, ErlCmd, Cfg),
      ok = run_erl_cmd_on_node(new_node4, ErlCmd, Cfg),
      %% Get public key of account meant to be creator of contract and make sure it has a sufficient balance by means of mining.
      {ok, 200, #{pub_key := PubKey3}} = request(new_node3, 'GetPubKey', #{}, Cfg),
      %% Balance is 0.
  