stellar_base-rails 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 758197b73291b263eee2ec794d64e1a50c4e458c8a1c91eac7821086e47b519e
|
4
|
+
data.tar.gz: d4abc71798b5e3c895666ac311cce6c527f45e3df4a616f20f02c98f220e3e14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b6f3ab80f269c9856a2395b4b3955b1fa20ac5d799fc47a0b9d376c000fcc0d93cc45c7c0f37ff2b10c4402b22f8334fb359067eb28d94b849baef330200b52
|
7
|
+
data.tar.gz: fa633c03daf388626dadc073fc911d60bf26106dbaf77beacfe2edd0a96e98c927c5c6b688e4fcc9c54a3a1fd93c375070a34bc25d8614e762c4793406a1cabc
|
@@ -11,9 +11,14 @@ module StellarBase
|
|
11
11
|
|
12
12
|
next c if c.cursor.present?
|
13
13
|
|
14
|
+
address = c.account_subscription.address
|
15
|
+
|
14
16
|
c.cursor = c.stellar_sdk_client.horizon.
|
15
|
-
account(account_id:
|
17
|
+
account(account_id: address).
|
16
18
|
operations(order: "desc", limit: 1).records.first.id
|
19
|
+
|
20
|
+
rescue Faraday::ClientError => e
|
21
|
+
c.fail_and_return! "Skipping fetching cursor of #{address} due to #{e.inspect}"
|
17
22
|
end
|
18
23
|
|
19
24
|
end
|
data/lib/stellar_base/version.rb
CHANGED