peatio-decredcoin 2.1.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/peatio/decredcoin/version.rb +1 -1
- data/lib/peatio/decredcoin/wallet.rb +11 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a29cfc88f36b57a5541a40f2870e49ce4dfbf941ab162e143b878db47d6fdf2e
|
|
4
|
+
data.tar.gz: 703d9426bb8a02ed9f163421cf6dd7760329a972533765122d7e41eabaec3087
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa8874c7a3afc6bfb0ed5dbae2b282470685df738a2e2d2e2258dd47966341a0da5e718cadaea6d4975d8e5b233f5e1532ab4c05a6de9d0304db8a027ef89d57
|
|
7
|
+
data.tar.gz: 7e763b8ffd44599f93fc1cc0a85035adc65d9801e3b5b4b8bf56c5984fc158d0be38eed564db3253a084711c4418a40ed26313d8dfa8971e69638ca168a6279b
|
|
@@ -31,13 +31,21 @@ module Peatio
|
|
|
31
31
|
raise Peatio::Wallet::ClientError, e
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def unlock_wallet!(passphrase, timeout = 15)
|
|
35
37
|
# unlock wallet for 10 seconds
|
|
36
38
|
client.json_rpc(:walletpassphrase,
|
|
37
39
|
[
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
passphrase,
|
|
41
|
+
timeout
|
|
40
42
|
])
|
|
43
|
+
rescue Decredcoin::Client::Error => e
|
|
44
|
+
raise Peatio::Wallet::ClientError, e
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def create_transaction!(transaction, options = {})
|
|
41
49
|
# create a transaction
|
|
42
50
|
txid = client.json_rpc(:sendtoaddress,
|
|
43
51
|
[
|