anchor.diff:  %% @doc Contact the leader computed in the prepare state for it to execute the
   %%      operation, wait for it to finish (synchronous) and go to the prepareOP
   %%       to execute the next operation.
  -execute_batch_ops(timeout, SD=#state{from=From,
  -                                tx_id=TxId,
  -                                tx_coord_pid=TxCoordPid,
  -                                operations=Operations}) ->
  +execute_batch_ops(timeout, SD=#state{from = From,
  +                                tx_id = TxId,
  +                                tx_coord_pid = TxCoordPid,
  +                                operations = Operations}) ->
       ExecuteOp = fun (Operation, Acc) ->
                           case Operation of
                               {update, Key, Type, OpParams} ->
  
positive.code:         {ok, TxId} ->
              lager:info("TX started with TxId: ~p", [TxId]),
              {_, _, TxCoordPid} = TxId,
              {ok, execute_batch_ops, #state{tx_id=TxId, tx_coord_pid= TxCoordPid,
                  from=From, operations=Operations}, 0}
      after
          10000 ->
              lager:info("Tx was not started!"),
  
negative.code: %%    state: state of the transaction: {active|prepared|committing|committed}
  %%----------------------------------------------------------------------
  -record(state, {
            from :: pid(),
            tx_id :: txid(),
            tx_coord_pid :: pid(),
            operations :: list(),
            state:: atom()}).
  
  