peatio-decredcoin 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/peatio/decredcoin/version.rb +1 -1
- data/lib/peatio/decredcoin/wallet.rb +8 -4
- 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: bdd4576af52bb55c83e9efa792861342290f34b717255a4a166e2dfbcc025ddd
|
4
|
+
data.tar.gz: 7960d3c91a761780b13f3f4b37c2687ca4aa0d0c9968701e3a82537f0a598eb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfa5b3e27be8ea8f4709215fce0ff8024f40a87bf076532af0a82fa9156143eafbde825387f5125c645a6cf1dc684c75caa25121373b39c0c733d70641e55694
|
7
|
+
data.tar.gz: '08e8497ee99301a6f6c459350e2281245a545f0d6a796de20bf790711193299725dd99e3f0d3157deeb6d260acbd8daad5ced9cc6e725a8e6c5021a94db79a1f'
|
data/Gemfile.lock
CHANGED
@@ -32,13 +32,17 @@ module Peatio
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def create_transaction!(transaction, options = {})
|
35
|
+
# unlock wallet for 10 seconds
|
36
|
+
client.json_rpc(:walletpassphrase,
|
37
|
+
[
|
38
|
+
options[:passphrase],
|
39
|
+
options[:seconds]
|
40
|
+
])
|
41
|
+
# create a transaction
|
35
42
|
txid = client.json_rpc(:sendtoaddress,
|
36
43
|
[
|
37
44
|
transaction.to_address,
|
38
|
-
transaction.amount
|
39
|
-
'',
|
40
|
-
'',
|
41
|
-
options[:subtract_fee].to_s == 'true' # subtract fee from transaction amount.
|
45
|
+
transaction.amount.to_f
|
42
46
|
])
|
43
47
|
transaction.hash = txid
|
44
48
|
transaction
|