Ejemplo n.º 1
0
 protected override void LogException(string txid, string message, DateTime date, DaemonTransactionType type)
 {
     m_database.Statement("INSERT INTO exceptions (txid, message, date, type) VALUES(@a,@b,@c,@d);", txid, message, date, type);
 }
Ejemplo n.º 2
0
 // ------------------------------------------------------------------------------------------------------------
 void InsertTransaction(string receivedTxid, string sentTxid, decimal amount, DaemonTransactionType type, string notes=null)
 {
     m_database.Statement(	"INSERT INTO transactions (received_txid, sent_txid, asset, amount, date, type, notes) VALUES(@a,@b,@c,@d,@e,@f,@g);",
                             receivedTxid, sentTxid, m_asset.symbol, amount, DateTime.UtcNow, type, notes);
 }
Ejemplo n.º 3
0
 void MarkTransactionEnd(string receivedTxid, string sentTxid, decimal amount, DaemonTransactionType type, string notes=null)
 {
     m_database.Statement("UPDATE transactions SET sent_txid=@sent, amount=@amount, type=@type, notes=@notes WHERE received_txid=@txid;",
                             sentTxid, amount, type, notes, receivedTxid);
 }
Ejemplo n.º 4
0
 protected abstract void MarkTransactionAsRefundedEnd(string receivedTxid, string sentTxid, decimal amount, DaemonTransactionType type, string notes);
Ejemplo n.º 5
0
        protected override void MarkTransactionAsRefundedEnd(	string receivedTxid, string sentTxid, decimal amount, 
																DaemonTransactionType type, string notes)
        {
            MarkTransactionEnd(receivedTxid, sentTxid, amount, type, notes);
        }
Ejemplo n.º 6
0
 void MarkTransactionEnd(string receivedTxid, string sentTxid, decimal amount, DaemonTransactionType type, string notes = null)
 {
     m_database.Statement("UPDATE transactions SET sent_txid=@sent, amount=@amount, type=@type, notes=@notes WHERE received_txid=@txid;",
                          sentTxid, amount, type, notes, receivedTxid);
 }
Ejemplo n.º 7
0
 protected abstract void LogException(string txid, string message, DateTime date, DaemonTransactionType type);
Ejemplo n.º 8
0
        // ------------------------------------------------------------------------------------------------------------

        void InsertTransaction(string receivedTxid, string sentTxid, decimal amount, DaemonTransactionType type, string notes = null)
        {
            m_database.Statement("INSERT INTO transactions (received_txid, sent_txid, asset, amount, date, type, notes) VALUES(@a,@b,@c,@d,@e,@f,@g);",
                                 receivedTxid, sentTxid, m_asset.symbol, amount, DateTime.UtcNow, type, notes);
        }
Ejemplo n.º 9
0
 protected override void LogException(string txid, string message, DateTime date, DaemonTransactionType type)
 {
     m_database.Statement("INSERT INTO exceptions (txid, message, date, type) VALUES(@a,@b,@c,@d);", txid, message, date, type);
 }
Ejemplo n.º 10
0
 protected override void MarkTransactionAsRefundedEnd(string receivedTxid, string sentTxid, decimal amount,
                                                      DaemonTransactionType type, string notes)
 {
     MarkTransactionEnd(receivedTxid, sentTxid, amount, type, notes);
 }
Ejemplo n.º 11
0
 protected abstract void MarkTransactionAsRefundedEnd(string receivedTxid, string sentTxid, decimal amount, DaemonTransactionType type, string notes);
Ejemplo n.º 12
0
 protected abstract void LogException(string txid, string message, DateTime date, DaemonTransactionType type);