anchor.diff:                      %% is already encoded to a binary; that's why we use
                       %% aec_blocks:serialize_to_map/1 instead of
                       %% aec_blocks:serialize_for_network/1 
  -                    Resp = aec_blocks:serialize_to_map(Block),
  +                    Resp =
  +                      cleanup_genesis(aec_blocks:serialize_to_map(Block)),
                       {200, [], Resp};
                   {error, {block_not_found, _}} ->
                       {404, [], #{reason => <<"block not found">>}}
  
positive.code:     end;
  
  handle_request('PostBlock', Req, _Context) ->
      SerializedBlock = maps:get('Block', Req),
      {ok, Block} = aec_blocks:deserialize_from_map(SerializedBlock),
      Header = aec_blocks:to_header(Block),
      {ok, HH} = aec_headers:hash_header(Header),
  
negative.code:             %% encoded to a binary; that's why we use
              %% aec_blocks:serialize_to_map/1 instead of
              %% aec_blocks:serialize_for_network/1 
              Resp = cleanup_genesis(aec_blocks:serialize_to_map(Block)),
              {200, [], Resp};
          {error, {chain_too_short, _}} ->
              {404, [], #{reason => <<"chain too short">>}}
  