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: e234267df93dc573883e37ef12bec9e02bf09e9f352e6bd421a8218e0778f96b
4
- data.tar.gz: 53c016ab4d59d6a83c085364658a7188f1793ce5f4a46fa2e52820e6f142db64
3
+ metadata.gz: 758197b73291b263eee2ec794d64e1a50c4e458c8a1c91eac7821086e47b519e
4
+ data.tar.gz: d4abc71798b5e3c895666ac311cce6c527f45e3df4a616f20f02c98f220e3e14
5
5
  SHA512:
6
- metadata.gz: cbdfc3995a424d5ff1aa202dead025e3193e0cec25800c0add12a542ac91f344b73e49718641bd90852f9d0d01004473ce42f33d562960ce153ed59c2717eb67
7
- data.tar.gz: 9a7672fce773d584bd4094e99e4c063ea8c70a7ed891409ccbd08887c917fbb40c1df7c2caf03035005beb1976e339d2ab3ace917620be84a881fdb5e9d7b714
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: c.account_subscription.address).
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
@@ -19,8 +19,8 @@ module StellarBase
19
19
  iterate(:operations, [
20
20
  AccountSubscriptions::GetTx,
21
21
  AccountSubscriptions::ExecuteCallback,
22
+ AccountSubscriptions::SaveCursor,
22
23
  ]),
23
- AccountSubscriptions::SaveCursor,
24
24
  ]
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module StellarBase
2
- VERSION = "0.9.2".freeze
2
+ VERSION = "0.9.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar_base-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Subido