Ledger maintenance refactor. (#130)

* Added ledger namespace.
* Thread-safe lcl access and update.
* Refactored history sync and serving into a thread.
* Restructured ledger cache item.
This commit is contained in:
Ravin Perera
2020-10-08 22:25:47 +05:30
committed by GitHub
parent 31048f55b8
commit cb4d0c4f59
30 changed files with 945 additions and 754 deletions

View File

@@ -11,6 +11,7 @@
#include <fcntl.h>
#include <flatbuffers/flatbuffers.h>
#include <fstream>
#include <ftw.h>
#include <iomanip>
#include <iostream>
#include <jsoncons/json.hpp>
@@ -22,6 +23,7 @@
#include <poll.h>
#include <readerwriterqueue/readerwriterqueue.h>
#include <set>
#include <shared_mutex>
#include <sodium.h>
#include <sstream>
#include <stdlib.h>
@@ -38,6 +40,7 @@
#include <unistd.h>
#include <unordered_map>
#include <unordered_set>
#include <variant>
#include <vector>
#include <blake3.h>
#include <concurrentqueue.h>