mixin_bot 1.2.1 → 1.2.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: 34604a6a665ba47f14e69d97225780ca5b984df2344e5f32360f301eadab4616
4
- data.tar.gz: 8d6fe1b40cada9bb7a693d91e77a924e055b36b31d808eecc61bee49c32af85f
3
+ metadata.gz: 0f2511bfcedc7830c107d0391dcf70b6312df06e6fe5e4a7a3fe87d9e01eecbb
4
+ data.tar.gz: 767b15073c03f315d25ddd28cc3fb6058d091d9705228608b09d324870eb9221
5
5
  SHA512:
6
- metadata.gz: 171af7dcf939b1c60b3cd24fc931c46507c22b09d417ba349005e6a4da02004319dd8665e4bcf6f655057a4569d1def480174e10fc1932df605cf03bd336389c
7
- data.tar.gz: 7a7ca4e4b325a5ece9b04d6d8ffa621d630412a5911432056f88106813778c4dfa0f76eec8e2eafc169d448793f34bac053bff8c215e9fad9844f87116fdc994
6
+ metadata.gz: 65c555699eae57ff19352a63618e555d7ab8feeb69f18c5199926c00255f20b11c6f954c201665ca8bce7cd3df1bddf54be3caa9e076209d3142c049f1427e3f
7
+ data.tar.gz: d78eeff877df1cd5b2d0e8a2491dfac42e93659cf18f3762b5b84d119df29c86c6d0b9442d29999437914fed2a95ebe49d2239eaf7ef2f7f5a16b7a3d456b7e3
@@ -60,7 +60,16 @@ module MixinBot
60
60
  # wait for tip pin update in server
61
61
  sleep 1
62
62
 
63
- user_api.safe_register keystore[:spend_key]
63
+ @__retry__ = 0
64
+ begin
65
+ user_api.safe_register keystore[:spend_key]
66
+ rescue MixinBot::Error => e
67
+ @__retry__ += 1
68
+ raise e if @__retry__ > 3
69
+
70
+ sleep 1 + @__retry__
71
+ retry
72
+ end
64
73
 
65
74
  keystore
66
75
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MixinBot
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixin_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - an-lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-27 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  - !ruby/object:Gem::Version
322
322
  version: '0'
323
323
  requirements: []
324
- rubygems_version: 3.5.10
324
+ rubygems_version: 3.5.17
325
325
  signing_key:
326
326
  specification_version: 4
327
327
  summary: A Ruby SDK for Mixin Nexwork