mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move all SQL operations on ledger close into the ledger code so we can
accept ledgers without having to participate in the consensus process. We'll need this when we implement "catch up". Move AcctTx into the same connection as Txn so they can be part of a single transaction. Dispatch ledger accept synchronization functions into a detached thread so it doesn't stall our I/O engine.
This commit is contained in:
@@ -14,12 +14,7 @@ const char *TxnDBInit[] = {
|
||||
"CREATE TABLE PubKeys ( \
|
||||
ID CHARACTER(35) PRIMARY KEY, \
|
||||
PubKey BLOB \
|
||||
);"
|
||||
};
|
||||
|
||||
int TxnDBCount = sizeof(TxnDBInit) / sizeof(const char *);
|
||||
|
||||
const char *AcctTxnDBInit[] = {
|
||||
);",
|
||||
"CREATE TABLE AccountTransactions ( \
|
||||
TransID CHARACTER(64), \
|
||||
Account CHARACTER(64), \
|
||||
@@ -29,7 +24,7 @@ const char *AcctTxnDBInit[] = {
|
||||
AccountTransactions(Account, LedgerSeq, TransID);"
|
||||
};
|
||||
|
||||
int AcctTxnDBCount = sizeof(AcctTxnDBInit) / sizeof(const char *);
|
||||
int TxnDBCount = sizeof(TxnDBInit) / sizeof(const char *);
|
||||
|
||||
// Ledger database holds ledgers and ledger confirmations
|
||||
const char *LedgerDBInit[] = {
|
||||
|
||||
Reference in New Issue
Block a user