add date to transaction tables

This commit is contained in:
CJ Cobb
2021-09-07 10:46:10 -04:00
parent 553be19882
commit cc76ece6f2
7 changed files with 55 additions and 45 deletions

View File

@@ -36,6 +36,7 @@ struct TransactionAndMetadata
Blob transaction;
Blob metadata;
uint32_t ledgerSequence;
uint32_t date;
bool
operator==(const TransactionAndMetadata&) const = default;
};
@@ -201,15 +202,14 @@ protected:
bool isFirst = false) const = 0;
void
writeLedgerObject(
std::string&& key,
uint32_t seq,
std::string&& blob) const;
writeLedgerObject(std::string&& key, uint32_t seq, std::string&& blob)
const;
virtual void
writeTransaction(
std::string&& hash,
uint32_t seq,
uint32_t date,
std::string&& transaction,
std::string&& metadata) const = 0;
@@ -257,10 +257,8 @@ private:
std::uint32_t limit) const = 0;
virtual void
doWriteLedgerObject(
std::string&& key,
uint32_t seq,
std::string&& blob) const = 0;
doWriteLedgerObject(std::string&& key, uint32_t seq, std::string&& blob)
const = 0;
virtual bool
doFinishWrites() const = 0;