stellar_base-rails 1.1.1 → 1.1.2
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: 3a319a99fc2f060ee9f0daad71147adee9690ccb924eed9188fbd96dbfecb4fa
|
4
|
+
data.tar.gz: a8028f862188d0211e071825534cd7e7ff7d3437dc7bbb011679ea66c4133ca5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9458ac072fb4656e2a4f28a761a93a4a4116f89afbed22143803b59c205aec589ac71ccad4869671f17005751c1cb707787fa71cbc67cc12e88ea95514868e06
|
7
|
+
data.tar.gz: b9d982cfbbaf1fb061c0d47b4eb48126c397d55e7148776c380161efad8f9004078a1e365c187476577c7eac4c39612c8812370b6564283db33b6fd9431ecc23
|
@@ -13,10 +13,11 @@ module StellarBase
|
|
13
13
|
|
14
14
|
address = c.account_subscription.address
|
15
15
|
|
16
|
-
c.cursor = c.stellar_sdk_client.horizon
|
17
|
-
|
18
|
-
|
16
|
+
c.cursor = c.stellar_sdk_client.horizon.
|
17
|
+
account(account_id: address).
|
18
|
+
operations(order: "desc", limit: 1).records.first.id
|
19
19
|
|
20
|
+
c.account_subscription.update_attributes!(cursor: c.cursor)
|
20
21
|
rescue Faraday::ClientError => e
|
21
22
|
c.fail_and_return! "Skipping fetching cursor of #{address} " \
|
22
23
|
"due to #{e.inspect}"
|
data/lib/stellar_base/version.rb
CHANGED