xrbp 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/crawl_nodes.rb +1 -1
- data/examples/nodestore1.rb +14 -0
- data/examples/nodestore2.rb +42 -0
- data/examples/p2p.rb +14 -0
- data/lib/xrbp.rb +3 -0
- data/lib/xrbp/common.rb +6 -0
- data/lib/xrbp/core_ext.rb +22 -0
- data/lib/xrbp/crypto.rb +3 -0
- data/lib/xrbp/crypto/account.rb +33 -0
- data/lib/xrbp/crypto/key.rb +93 -0
- data/lib/xrbp/crypto/node.rb +27 -0
- data/lib/xrbp/model/node.rb +2 -1
- data/lib/xrbp/nodestore.rb +7 -0
- data/lib/xrbp/nodestore/backends/nudb.rb +1 -0
- data/lib/xrbp/nodestore/backends/rocksdb.rb +43 -0
- data/lib/xrbp/nodestore/db.rb +324 -0
- data/lib/xrbp/nodestore/format.rb +297 -0
- data/lib/xrbp/overlay.rb +3 -0
- data/lib/xrbp/overlay/connection.rb +86 -0
- data/lib/xrbp/overlay/frame.rb +51 -0
- data/lib/xrbp/overlay/handshake.rb +78 -0
- data/lib/xrbp/overlay/ripple.proto.rb +306 -0
- data/lib/xrbp/version.rb +1 -1
- data/lib/xrbp/webclient/connection.rb +6 -1
- metadata +61 -2
@@ -0,0 +1,306 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: ripple.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "protocol.TMManifest" do
|
8
|
+
optional :stobject, :bytes, 1
|
9
|
+
end
|
10
|
+
add_message "protocol.TMManifests" do
|
11
|
+
repeated :list, :message, 1, "protocol.TMManifest"
|
12
|
+
optional :history, :bool, 2
|
13
|
+
end
|
14
|
+
add_message "protocol.TMProofWork" do
|
15
|
+
optional :token, :string, 1
|
16
|
+
optional :iterations, :uint32, 2
|
17
|
+
optional :target, :bytes, 3
|
18
|
+
optional :challenge, :bytes, 4
|
19
|
+
optional :response, :bytes, 5
|
20
|
+
optional :result, :enum, 6, "protocol.TMProofWork.PowResult"
|
21
|
+
end
|
22
|
+
add_enum "protocol.TMProofWork.PowResult" do
|
23
|
+
value :POWROK, 0
|
24
|
+
value :POWRREUSED, 1
|
25
|
+
value :POWREXPIRED, 2
|
26
|
+
value :POWRTOOEASY, 3
|
27
|
+
value :POWRINVALID, 4
|
28
|
+
value :POWRDISCONNECT, 5
|
29
|
+
end
|
30
|
+
add_message "protocol.TMHello" do
|
31
|
+
optional :protoVersion, :uint32, 1
|
32
|
+
optional :protoVersionMin, :uint32, 2
|
33
|
+
optional :nodePublic, :bytes, 3
|
34
|
+
optional :nodeProof, :bytes, 4
|
35
|
+
optional :fullVersion, :string, 5
|
36
|
+
optional :netTime, :uint64, 6
|
37
|
+
optional :ipv4Port, :uint32, 7
|
38
|
+
optional :ledgerIndex, :uint32, 8
|
39
|
+
optional :ledgerClosed, :bytes, 9
|
40
|
+
optional :ledgerPrevious, :bytes, 10
|
41
|
+
optional :nodePrivate, :bool, 11
|
42
|
+
optional :proofOfWork, :message, 12, "protocol.TMProofWork"
|
43
|
+
optional :testNet, :bool, 13
|
44
|
+
optional :local_ip, :uint32, 14
|
45
|
+
optional :remote_ip, :uint32, 15
|
46
|
+
optional :local_ip_str, :string, 16
|
47
|
+
optional :remote_ip_str, :string, 17
|
48
|
+
end
|
49
|
+
add_message "protocol.TMClusterNode" do
|
50
|
+
optional :publicKey, :string, 1
|
51
|
+
optional :reportTime, :uint32, 2
|
52
|
+
optional :nodeLoad, :uint32, 3
|
53
|
+
optional :nodeName, :string, 4
|
54
|
+
optional :address, :string, 5
|
55
|
+
end
|
56
|
+
add_message "protocol.TMLoadSource" do
|
57
|
+
optional :name, :string, 1
|
58
|
+
optional :cost, :uint32, 2
|
59
|
+
optional :count, :uint32, 3
|
60
|
+
end
|
61
|
+
add_message "protocol.TMCluster" do
|
62
|
+
repeated :clusterNodes, :message, 1, "protocol.TMClusterNode"
|
63
|
+
repeated :loadSources, :message, 2, "protocol.TMLoadSource"
|
64
|
+
end
|
65
|
+
add_message "protocol.TMGetShardInfo" do
|
66
|
+
optional :hops, :uint32, 1
|
67
|
+
optional :lastLink, :bool, 2
|
68
|
+
repeated :peerchain, :uint32, 3
|
69
|
+
end
|
70
|
+
add_message "protocol.TMShardInfo" do
|
71
|
+
optional :shardIndexes, :string, 1
|
72
|
+
optional :nodePubKey, :bytes, 2
|
73
|
+
optional :endpoint, :string, 3
|
74
|
+
optional :lastLink, :bool, 4
|
75
|
+
repeated :peerchain, :uint32, 5
|
76
|
+
end
|
77
|
+
add_message "protocol.TMTransaction" do
|
78
|
+
optional :rawTransaction, :bytes, 1
|
79
|
+
optional :status, :enum, 2, "protocol.TransactionStatus"
|
80
|
+
optional :receiveTimestamp, :uint64, 3
|
81
|
+
optional :deferred, :bool, 4
|
82
|
+
end
|
83
|
+
add_message "protocol.TMStatusChange" do
|
84
|
+
optional :newStatus, :enum, 1, "protocol.NodeStatus"
|
85
|
+
optional :newEvent, :enum, 2, "protocol.NodeEvent"
|
86
|
+
optional :ledgerSeq, :uint32, 3
|
87
|
+
optional :ledgerHash, :bytes, 4
|
88
|
+
optional :ledgerHashPrevious, :bytes, 5
|
89
|
+
optional :networkTime, :uint64, 6
|
90
|
+
optional :firstSeq, :uint32, 7
|
91
|
+
optional :lastSeq, :uint32, 8
|
92
|
+
end
|
93
|
+
add_message "protocol.TMProposeSet" do
|
94
|
+
optional :proposeSeq, :uint32, 1
|
95
|
+
optional :currentTxHash, :bytes, 2
|
96
|
+
optional :nodePubKey, :bytes, 3
|
97
|
+
optional :closeTime, :uint32, 4
|
98
|
+
optional :signature, :bytes, 5
|
99
|
+
optional :previousledger, :bytes, 6
|
100
|
+
optional :checkedSignature, :bool, 7
|
101
|
+
repeated :addedTransactions, :bytes, 10
|
102
|
+
repeated :removedTransactions, :bytes, 11
|
103
|
+
optional :hops, :uint32, 12
|
104
|
+
end
|
105
|
+
add_message "protocol.TMHaveTransactionSet" do
|
106
|
+
optional :status, :enum, 1, "protocol.TxSetStatus"
|
107
|
+
optional :hash, :bytes, 2
|
108
|
+
end
|
109
|
+
add_message "protocol.TMValidation" do
|
110
|
+
optional :validation, :bytes, 1
|
111
|
+
optional :checkedSignature, :bool, 2
|
112
|
+
optional :hops, :uint32, 3
|
113
|
+
end
|
114
|
+
add_message "protocol.TMGetPeers" do
|
115
|
+
optional :doWeNeedThis, :uint32, 1
|
116
|
+
end
|
117
|
+
add_message "protocol.TMIPv4Endpoint" do
|
118
|
+
optional :ipv4, :uint32, 1
|
119
|
+
optional :ipv4Port, :uint32, 2
|
120
|
+
end
|
121
|
+
add_message "protocol.TMPeers" do
|
122
|
+
repeated :nodes, :message, 1, "protocol.TMIPv4Endpoint"
|
123
|
+
end
|
124
|
+
add_message "protocol.TMEndpoint" do
|
125
|
+
optional :ipv4, :message, 1, "protocol.TMIPv4Endpoint"
|
126
|
+
optional :hops, :uint32, 2
|
127
|
+
end
|
128
|
+
add_message "protocol.TMEndpoints" do
|
129
|
+
optional :version, :uint32, 1
|
130
|
+
repeated :endpoints, :message, 2, "protocol.TMEndpoint"
|
131
|
+
repeated :endpoints_v2, :message, 3, "protocol.TMEndpoints.TMEndpointv2"
|
132
|
+
end
|
133
|
+
add_message "protocol.TMEndpoints.TMEndpointv2" do
|
134
|
+
optional :endpoint, :string, 1
|
135
|
+
optional :hops, :uint32, 2
|
136
|
+
end
|
137
|
+
add_message "protocol.TMIndexedObject" do
|
138
|
+
optional :hash, :bytes, 1
|
139
|
+
optional :nodeID, :bytes, 2
|
140
|
+
optional :index, :bytes, 3
|
141
|
+
optional :data, :bytes, 4
|
142
|
+
optional :ledgerSeq, :uint32, 5
|
143
|
+
end
|
144
|
+
add_message "protocol.TMGetObjectByHash" do
|
145
|
+
optional :type, :enum, 1, "protocol.TMGetObjectByHash.ObjectType"
|
146
|
+
optional :query, :bool, 2
|
147
|
+
optional :seq, :uint32, 3
|
148
|
+
optional :ledgerHash, :bytes, 4
|
149
|
+
optional :fat, :bool, 5
|
150
|
+
repeated :objects, :message, 6, "protocol.TMIndexedObject"
|
151
|
+
end
|
152
|
+
add_enum "protocol.TMGetObjectByHash.ObjectType" do
|
153
|
+
value :OTUNKNOWN, 0
|
154
|
+
value :OTLEDGER, 1
|
155
|
+
value :OTTRANSACTION, 2
|
156
|
+
value :OTTRANSACTION_NODE, 3
|
157
|
+
value :OTSTATE_NODE, 4
|
158
|
+
value :OTCAS_OBJECT, 5
|
159
|
+
value :OTFETCH_PACK, 6
|
160
|
+
end
|
161
|
+
add_message "protocol.TMLedgerNode" do
|
162
|
+
optional :nodedata, :bytes, 1
|
163
|
+
optional :nodeid, :bytes, 2
|
164
|
+
end
|
165
|
+
add_message "protocol.TMGetLedger" do
|
166
|
+
optional :itype, :enum, 1, "protocol.TMLedgerInfoType"
|
167
|
+
optional :ltype, :enum, 2, "protocol.TMLedgerType"
|
168
|
+
optional :ledgerHash, :bytes, 3
|
169
|
+
optional :ledgerSeq, :uint32, 4
|
170
|
+
repeated :nodeIDs, :bytes, 5
|
171
|
+
optional :requestCookie, :uint64, 6
|
172
|
+
optional :queryType, :enum, 7, "protocol.TMQueryType"
|
173
|
+
optional :queryDepth, :uint32, 8
|
174
|
+
end
|
175
|
+
add_message "protocol.TMLedgerData" do
|
176
|
+
optional :ledgerHash, :bytes, 1
|
177
|
+
optional :ledgerSeq, :uint32, 2
|
178
|
+
optional :type, :enum, 3, "protocol.TMLedgerInfoType"
|
179
|
+
repeated :nodes, :message, 4, "protocol.TMLedgerNode"
|
180
|
+
optional :requestCookie, :uint32, 5
|
181
|
+
optional :error, :enum, 6, "protocol.TMReplyError"
|
182
|
+
end
|
183
|
+
add_message "protocol.TMPing" do
|
184
|
+
optional :type, :enum, 1, "protocol.TMPing.pingType"
|
185
|
+
optional :seq, :uint32, 2
|
186
|
+
optional :pingTime, :uint64, 3
|
187
|
+
optional :netTime, :uint64, 4
|
188
|
+
end
|
189
|
+
add_enum "protocol.TMPing.pingType" do
|
190
|
+
value :PTPING, 0
|
191
|
+
value :PTPONG, 1
|
192
|
+
end
|
193
|
+
add_enum "protocol.MessageType" do
|
194
|
+
value :MTZero, 0
|
195
|
+
value :MTHELLO, 1
|
196
|
+
value :MTMANIFESTS, 2
|
197
|
+
value :MTPING, 3
|
198
|
+
value :MTPROOFOFWORK, 4
|
199
|
+
value :MTCLUSTER, 5
|
200
|
+
value :MTGET_PEERS, 12
|
201
|
+
value :MTPEERS, 13
|
202
|
+
value :MTENDPOINTS, 15
|
203
|
+
value :MTTRANSACTION, 30
|
204
|
+
value :MTGET_LEDGER, 31
|
205
|
+
value :MTLEDGER_DATA, 32
|
206
|
+
value :MTPROPOSE_LEDGER, 33
|
207
|
+
value :MTSTATUS_CHANGE, 34
|
208
|
+
value :MTHAVE_SET, 35
|
209
|
+
value :MTVALIDATION, 41
|
210
|
+
value :MTGET_OBJECTS, 42
|
211
|
+
value :MTGET_SHARD_INFO, 50
|
212
|
+
value :MTSHARD_INFO, 51
|
213
|
+
end
|
214
|
+
add_enum "protocol.TransactionStatus" do
|
215
|
+
value :TSZERO, 0
|
216
|
+
value :TSNEW, 1
|
217
|
+
value :TSCURRENT, 2
|
218
|
+
value :TSCOMMITED, 3
|
219
|
+
value :TSREJECT_CONFLICT, 4
|
220
|
+
value :TSREJECT_INVALID, 5
|
221
|
+
value :TSREJECT_FUNDS, 6
|
222
|
+
value :TSHELD_SEQ, 7
|
223
|
+
value :TSHELD_LEDGER, 8
|
224
|
+
end
|
225
|
+
add_enum "protocol.NodeStatus" do
|
226
|
+
value :NSZERO, 0
|
227
|
+
value :NSCONNECTING, 1
|
228
|
+
value :NSCONNECTED, 2
|
229
|
+
value :NSMONITORING, 3
|
230
|
+
value :NSVALIDATING, 4
|
231
|
+
value :NSSHUTTING, 5
|
232
|
+
end
|
233
|
+
add_enum "protocol.NodeEvent" do
|
234
|
+
value :NEZERO, 0
|
235
|
+
value :NECLOSING_LEDGER, 1
|
236
|
+
value :NEACCEPTED_LEDGER, 2
|
237
|
+
value :NESWITCHED_LEDGER, 3
|
238
|
+
value :NELOST_SYNC, 4
|
239
|
+
end
|
240
|
+
add_enum "protocol.TxSetStatus" do
|
241
|
+
value :TSsZERO, 0
|
242
|
+
value :TSHAVE, 1
|
243
|
+
value :TSCAN_GET, 2
|
244
|
+
value :TSNEED, 3
|
245
|
+
end
|
246
|
+
add_enum "protocol.TMLedgerInfoType" do
|
247
|
+
value :LIBASE, 0
|
248
|
+
value :LITX_NODE, 1
|
249
|
+
value :LIAS_NODE, 2
|
250
|
+
value :LITS_CANDIDATE, 3
|
251
|
+
end
|
252
|
+
add_enum "protocol.TMLedgerType" do
|
253
|
+
value :LTACCEPTED, 0
|
254
|
+
value :LTCURRENT, 1
|
255
|
+
value :LTCLOSED, 2
|
256
|
+
end
|
257
|
+
add_enum "protocol.TMQueryType" do
|
258
|
+
value :QTINDIRECT, 0
|
259
|
+
end
|
260
|
+
add_enum "protocol.TMReplyError" do
|
261
|
+
value :REZERO, 0
|
262
|
+
value :RENO_LEDGER, 1
|
263
|
+
value :RENO_NODE, 2
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
module Protocol
|
268
|
+
TMManifest = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMManifest").msgclass
|
269
|
+
TMManifests = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMManifests").msgclass
|
270
|
+
TMProofWork = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMProofWork").msgclass
|
271
|
+
TMProofWork::PowResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMProofWork.PowResult").enummodule
|
272
|
+
TMHello = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMHello").msgclass
|
273
|
+
TMClusterNode = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMClusterNode").msgclass
|
274
|
+
TMLoadSource = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMLoadSource").msgclass
|
275
|
+
TMCluster = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMCluster").msgclass
|
276
|
+
TMGetShardInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMGetShardInfo").msgclass
|
277
|
+
TMShardInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMShardInfo").msgclass
|
278
|
+
TMTransaction = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMTransaction").msgclass
|
279
|
+
TMStatusChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMStatusChange").msgclass
|
280
|
+
TMProposeSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMProposeSet").msgclass
|
281
|
+
TMHaveTransactionSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMHaveTransactionSet").msgclass
|
282
|
+
TMValidation = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMValidation").msgclass
|
283
|
+
TMGetPeers = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMGetPeers").msgclass
|
284
|
+
TMIPv4Endpoint = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMIPv4Endpoint").msgclass
|
285
|
+
TMPeers = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMPeers").msgclass
|
286
|
+
TMEndpoint = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMEndpoint").msgclass
|
287
|
+
TMEndpoints = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMEndpoints").msgclass
|
288
|
+
TMEndpoints::TMEndpointv2 = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMEndpoints.TMEndpointv2").msgclass
|
289
|
+
TMIndexedObject = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMIndexedObject").msgclass
|
290
|
+
TMGetObjectByHash = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMGetObjectByHash").msgclass
|
291
|
+
TMGetObjectByHash::ObjectType = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMGetObjectByHash.ObjectType").enummodule
|
292
|
+
TMLedgerNode = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMLedgerNode").msgclass
|
293
|
+
TMGetLedger = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMGetLedger").msgclass
|
294
|
+
TMLedgerData = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMLedgerData").msgclass
|
295
|
+
TMPing = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMPing").msgclass
|
296
|
+
TMPing::PingType = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMPing.pingType").enummodule
|
297
|
+
MessageType = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.MessageType").enummodule
|
298
|
+
TransactionStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TransactionStatus").enummodule
|
299
|
+
NodeStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.NodeStatus").enummodule
|
300
|
+
NodeEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.NodeEvent").enummodule
|
301
|
+
TxSetStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TxSetStatus").enummodule
|
302
|
+
TMLedgerInfoType = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMLedgerInfoType").enummodule
|
303
|
+
TMLedgerType = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMLedgerType").enummodule
|
304
|
+
TMQueryType = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMQueryType").enummodule
|
305
|
+
TMReplyError = Google::Protobuf::DescriptorPool.generated_pool.lookup("protocol.TMReplyError").enummodule
|
306
|
+
end
|
data/lib/xrbp/version.rb
CHANGED
@@ -93,7 +93,12 @@ module XRBP
|
|
93
93
|
end
|
94
94
|
|
95
95
|
emit :success, c.body_str
|
96
|
-
|
96
|
+
begin
|
97
|
+
parse_result(c.body_str, c)
|
98
|
+
rescue Exception => e
|
99
|
+
emit :error, e
|
100
|
+
return nil
|
101
|
+
end
|
97
102
|
end
|
98
103
|
end # class Connection
|
99
104
|
end # module WebClient
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xrbp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dev Null Productions
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: openssl
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.1'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: websocket
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +94,34 @@ dependencies:
|
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0.9'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bistro
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.2'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.2'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: base58
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.2'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.2'
|
83
125
|
- !ruby/object:Gem::Dependency
|
84
126
|
name: rspec
|
85
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,6 +176,9 @@ files:
|
|
134
176
|
- examples/ledger_subscribe.rb
|
135
177
|
- examples/market.rb
|
136
178
|
- examples/multi.rb
|
179
|
+
- examples/nodestore1.rb
|
180
|
+
- examples/nodestore2.rb
|
181
|
+
- examples/p2p.rb
|
137
182
|
- examples/paginate.rb
|
138
183
|
- examples/prioritized.rb
|
139
184
|
- examples/round_robin.rb
|
@@ -143,6 +188,10 @@ files:
|
|
143
188
|
- lib/xrbp.rb
|
144
189
|
- lib/xrbp/common.rb
|
145
190
|
- lib/xrbp/core_ext.rb
|
191
|
+
- lib/xrbp/crypto.rb
|
192
|
+
- lib/xrbp/crypto/account.rb
|
193
|
+
- lib/xrbp/crypto/key.rb
|
194
|
+
- lib/xrbp/crypto/node.rb
|
146
195
|
- lib/xrbp/dsl.rb
|
147
196
|
- lib/xrbp/dsl/accounts.rb
|
148
197
|
- lib/xrbp/dsl/ledgers.rb
|
@@ -164,6 +213,16 @@ files:
|
|
164
213
|
- lib/xrbp/model/parsers/quote.rb
|
165
214
|
- lib/xrbp/model/parsers/validator.rb
|
166
215
|
- lib/xrbp/model/validator.rb
|
216
|
+
- lib/xrbp/nodestore.rb
|
217
|
+
- lib/xrbp/nodestore/backends/nudb.rb
|
218
|
+
- lib/xrbp/nodestore/backends/rocksdb.rb
|
219
|
+
- lib/xrbp/nodestore/db.rb
|
220
|
+
- lib/xrbp/nodestore/format.rb
|
221
|
+
- lib/xrbp/overlay.rb
|
222
|
+
- lib/xrbp/overlay/connection.rb
|
223
|
+
- lib/xrbp/overlay/frame.rb
|
224
|
+
- lib/xrbp/overlay/handshake.rb
|
225
|
+
- lib/xrbp/overlay/ripple.proto.rb
|
167
226
|
- lib/xrbp/plugins.rb
|
168
227
|
- lib/xrbp/plugins/base.rb
|
169
228
|
- lib/xrbp/plugins/has_plugin.rb
|