Skip to content

Commit da49584

Browse files
committed
Turn 'EtherscanApiToken' into an array to support
multiple API tokens to better handle etherscan's rate limit.
1 parent a614878 commit da49584

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Background.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6630,7 +6630,8 @@ var _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
66306630
{
66316631
get: function e()
66326632
{
6633-
return t.config.EtherscanApiToken
6633+
t.EStokenIndex = ++t.EStokenIndex % t.config.EtherscanApiToken.length
6634+
return t.config.EtherscanApiToken[t.EStokenIndex]
66346635
},
66356636
enumerable: !0,
66366637
configurable: !0
@@ -6668,6 +6669,7 @@ var _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
66686669
}),
66696670
t.config = e("../../../dist/config.json"),
66706671
t.BIP44_MAX_ADDRESS_GAP = 20,
6672+
t.EStokenIndex = 0,
66716673
t
66726674
}();
66736675
n.Configuration = a
@@ -12023,7 +12025,7 @@ var _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
1202312025
TransactionTimeout: 6e5,
1202412026
ShapeShiftApiPublicKey: "6ad5831b778484bb849da45180ac35047848e5cac0fa666454f4ff78b8c7399fea6a8ce2c7ee6287bcd78db6610ca3f538d6b3e90ca80c8e6368b6021445950b",
1202512027
ShapeShiftSignatureKey: "1HxFWu1wM88q1aLkfUmpZBjhTWcdXGB6gT",
12026-
EtherscanApiToken: "8VMWZ17XJ3KQIGS4J2NFUS4YBHHZJSG65P",
12028+
EtherscanApiToken: ["8VMWZ17XJ3KQIGS4J2NFUS4YBHHZJSG65P"],
1202712029
firmware:
1202812030
{
1202912031
repository: "keepkey-firmware",

0 commit comments

Comments
 (0)