From d4766821c71fc50c759cc76bfe853bff75e7bae2 Mon Sep 17 00:00:00 2001 From: Brannon King Date: Thu, 2 Jan 2020 17:47:28 -0700 Subject: [PATCH] changed to WAL, changed coin table to unspent, added unspent::address --- src/claimtrie/trie.cpp | 2 +- src/txdb.cpp | 42 +++++++++++++++++++++++++++--------------- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/claimtrie/trie.cpp b/src/claimtrie/trie.cpp index 6a62cfdee..1cd5c9ee1 100644 --- a/src/claimtrie/trie.cpp +++ b/src/claimtrie/trie.cpp @@ -41,7 +41,7 @@ void applyPragmas(sqlite::database& db, std::size_t cache) { db << "PRAGMA cache_size=-" + std::to_string(cache); // in -KB db << "PRAGMA synchronous=OFF"; // don't disk sync after transaction commit - db << "PRAGMA journal_mode=MEMORY"; + db << "PRAGMA journal_mode=WAL"; db << "PRAGMA temp_store=MEMORY"; db << "PRAGMA case_sensitive_like=true"; diff --git a/src/txdb.cpp b/src/txdb.cpp index 05f78b929..4b01efe9b 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -6,8 +6,10 @@ #include #include +#include #include #include +#include