diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-03 18:10:56 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-03 18:10:56 -0800 |
| commit | 2e04dc03f26464cc1d3a9f3aca71a0e9025d355b (patch) | |
| tree | 6d4c3f7fe93c2670c0945ed7ec66f914228d6531 /controller/SqliteNetworkController.hpp | |
| parent | f8eb6b00674a218cef20fd2ad6803fdecabc82ab (diff) | |
| download | infinitytier-2e04dc03f26464cc1d3a9f3aca71a0e9025d355b.tar.gz infinitytier-2e04dc03f26464cc1d3a9f3aca71a0e9025d355b.zip | |
Logging to NodeHistory, SQL queries.
Diffstat (limited to 'controller/SqliteNetworkController.hpp')
| -rw-r--r-- | controller/SqliteNetworkController.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/controller/SqliteNetworkController.hpp b/controller/SqliteNetworkController.hpp index 6562058a..22441f11 100644 --- a/controller/SqliteNetworkController.hpp +++ b/controller/SqliteNetworkController.hpp @@ -131,6 +131,9 @@ private: }; std::map< uint64_t,_CircuitTestEntry > _circuitTests; + // Last request time by address, for rate limitation + std::map< Address,uint64_t > _lastRequestTime; + sqlite3 *_db; sqlite3_stmt *_sGetNetworkById; @@ -138,6 +141,11 @@ private: sqlite3_stmt *_sCreateMember; sqlite3_stmt *_sGetNodeIdentity; sqlite3_stmt *_sCreateOrReplaceNode; + sqlite3_stmt *_sGetMaxNodeHistoryNetworkVisitCounter; + sqlite3_stmt *_sAddNodeHistoryEntry; + sqlite3_stmt *_sDeleteOldNodeHistoryEntries; + sqlite3_stmt *_sGetActiveNodesOnNetwork; + sqlite3_stmt *_sGetNodeHistory; sqlite3_stmt *_sGetEtherTypesFromRuleTable; sqlite3_stmt *_sGetActiveBridges; sqlite3_stmt *_sGetIpAssignmentsForNode; |
