mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
The upcoming Txn DB change.
This commit is contained in:
@@ -1,17 +1,15 @@
|
|||||||
|
|
||||||
CREATE TABLE Transactions ( -- transactions in all states
|
CREATE TABLE Transactions ( -- transactions in all states
|
||||||
TransID CHARACTER(64) PRIMARY KEY, -- in hex
|
TransID CHARACTER(64) PRIMARY KEY, -- in hex
|
||||||
|
TransType CHARACTER(24),
|
||||||
FromAcct CHARACTER(40), -- 20 byte hash of pub key in hex
|
FromAcct CHARACTER(40), -- 20 byte hash of pub key in hex
|
||||||
FromSeq BIGINT UNSIGNED, -- account seq
|
FromSeq BIGINT UNSIGNED, -- account seq
|
||||||
FromLedger BIGINT UNSIGNED,
|
OtherAcct CHARACTER(40), -- 20 byte hash of pub key
|
||||||
Identifier BIGINT UNSIGNED,
|
Amount BIGINT UNSINGED< -- if newcoin transfer
|
||||||
ToAcct CHARACTER(40), -- 20 byte hash of pub key
|
|
||||||
Amount BIGINT UNSIGNED,
|
|
||||||
Fee BIGINT UNSIGNED,
|
|
||||||
FirstSeen TEXT, -- time first seen
|
FirstSeen TEXT, -- time first seen
|
||||||
CommitSeq BIGINT UNSIGNED, -- ledger commited to, 0 if none
|
CommitSeq BIGINT UNSIGNED, -- ledger commited to, 0 if none
|
||||||
Status CHARACTER(1), -- (N)ew, (A)ctive, (C)onflicted, (D)one, (H)eld
|
Status CHARACTER(1), -- (N)ew, (A)ctive, (C)onflicted, (D)one, (H)eld
|
||||||
Signature BLOB
|
RawTxn BLOB
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE PubKeys ( -- holds pub keys for nodes and accounts
|
CREATE TABLE PubKeys ( -- holds pub keys for nodes and accounts
|
||||||
|
|||||||
Reference in New Issue
Block a user