|
60 | 60 | ([session] (delete-ledger-async session nil))
|
61 | 61 | ([session {:keys [snapshot?] :as opts}]
|
62 | 62 | (let [{:keys [dbid network conn]} session]
|
63 |
| - (send-operation conn :delete-db {:network network |
64 |
| - :dbid dbid |
65 |
| - :snapshot? snapshot?})))) |
| 63 | + (send-operation conn :delete-ledger {:network network |
| 64 | + :ledger-id dbid |
| 65 | + :snapshot? snapshot?})))) |
66 | 66 |
|
67 | 67 |
|
68 | 68 | (defn garbage-collect-async
|
|
72 | 72 | [session & [{:keys [toBlock toTime]} :as opts]]
|
73 | 73 | (async/go
|
74 | 74 | (let [{:keys [network dbid conn]} session]
|
75 |
| - (send-operation conn :garbage {:network network |
76 |
| - :dbid dbid |
77 |
| - :toBlock toBlock |
78 |
| - :toTime toTime})))) |
| 75 | + (send-operation conn :garbage {:network network |
| 76 | + :ledger-id dbid |
| 77 | + :toBlock toBlock |
| 78 | + :toTime toTime})))) |
79 | 79 |
|
80 | 80 |
|
81 | 81 | (defn snapshot-ledger-async
|
|
84 | 84 | A final 'completed' message will be sent in the future, if anyone cares to hear it."
|
85 | 85 | [session opts]
|
86 | 86 | (let [{:keys [network dbid conn]} session]
|
87 |
| - (send-operation conn :snapshot-db [network dbid]))) |
| 87 | + (send-operation conn :snapshot-ledger [network dbid]))) |
88 | 88 |
|
89 | 89 |
|
90 | 90 | (defn command-async
|
|
106 | 106 |
|
107 | 107 |
|
108 | 108 | (defn ledger-info-async
|
109 |
| - "Returns information about a ledger in a map, or empty map if db doesn't exist." |
| 109 | + "Returns information about a ledger in a map, or empty map if ledger doesn't exist." |
110 | 110 | [conn ledger]
|
111 | 111 | (send-operation conn :ledger-info ledger))
|
112 | 112 |
|
113 | 113 | (defn ledger-status-async
|
114 |
| - "Returns information about a ledger in a map, or empty map if db doesn't exist." |
| 114 | + "Returns information about a ledger in a map, or empty map if ledger doesn't exist." |
115 | 115 | [conn ledger]
|
116 | 116 | (:status (send-operation conn :ledger-info ledger)))
|
117 | 117 |
|
118 | 118 | (defn ledger-stats-async
|
119 |
| - "Returns stats about a ledger in a map, or empty map if db doesn't exist." |
| 119 | + "Returns stats about a ledger in a map, or empty map if ledger doesn't exist." |
120 | 120 | [conn ledger]
|
121 | 121 | (send-operation conn :ledger-stats ledger))
|
122 | 122 |
|
123 | 123 | (defn ledgers-async
|
124 | 124 | "Returns a list of ledgers in two-tuples of [network ledger-id]."
|
125 | 125 | [conn]
|
126 |
| - (send-operation conn :db-list nil)) |
| 126 | + (send-operation conn :ledger-list nil)) |
127 | 127 |
|
128 | 128 |
|
129 | 129 | (defn transact-async
|
|
0 commit comments