Exemplo n.º 1
0
 /// <summary>
 /// save log after call <see cref="Commit"/> method
 /// </summary>
 /// <param name="txId"></param>
 /// <param name="log"></param>
 public void AddExecuteLog(UInt256 txId, ExecuteResultInfo log)
 {
     if (log != null)
     {
         writeBatch.Put(ExecuteLogKey(txId), log.SerializeJsonBytes());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// save execute result log after call <see cref="Commit"/> method
 /// </summary>
 /// <param name="log"></param>
 public void SaveTxExecuteLog(ExecuteResultInfo log)
 {
     if (log != null && log.TxId != null)
     {
         writeBatch.Put(ExecuteLogKey(log.TxId), log.SerializeJsonBytes());
     }
 }