bitcoin-ruby 0.0.13 → 0.0.14
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/bitcoin.rb +15 -14
- data/lib/bitcoin/version.rb +1 -1
- data/spec/bitcoin/protocol/tx_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bacd4496251a558a0f1eac2b07a9760db13dde1
|
4
|
+
data.tar.gz: dd2be23dff65df8f413edc45e10b5c8c1dc12743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 429192b346b5c1e9b022787b4b0b9b3201791cba0981aece83092cbbb8297c19a40f0bb7d686c6011cab84d0219e914e5f76e8c8af5fb7512f8b4f3ddbf1b9ed
|
7
|
+
data.tar.gz: b66dc9ce517c43952554e7eed44dd38d2b96931db305cce6c08e4a742ff5669136e0fd557287e8cce519ed410c60376ea5862b1e9a4592c55778b52324dca2b7
|
data/Gemfile.lock
CHANGED
data/lib/bitcoin.rb
CHANGED
@@ -16,6 +16,7 @@ module Bitcoin
|
|
16
16
|
autoload :Logger, 'bitcoin/logger'
|
17
17
|
autoload :Key, 'bitcoin/key'
|
18
18
|
autoload :ExtKey, 'bitcoin/ext_key'
|
19
|
+
autoload :ExtPubkey, 'bitcoin/ext_key'
|
19
20
|
autoload :Builder, 'bitcoin/builder'
|
20
21
|
autoload :BloomFilter,'bitcoin/bloom_filter'
|
21
22
|
|
@@ -657,7 +658,7 @@ module Bitcoin
|
|
657
658
|
magic_head: "\xfb\xc0\xb6\xdb",
|
658
659
|
message_magic: "Litecoin Signed Message:\n",
|
659
660
|
address_version: "30",
|
660
|
-
p2sh_version: "
|
661
|
+
p2sh_version: "32",
|
661
662
|
privkey_version: "b0",
|
662
663
|
extended_privkey_version: "019d9cfe",
|
663
664
|
extended_pubkey_version: "019da462",
|
@@ -668,15 +669,15 @@ module Bitcoin
|
|
668
669
|
min_relay_tx_fee: 100_000, # 0.001 LTC
|
669
670
|
free_tx_bytes: 5_000,
|
670
671
|
dust: CENT / 10,
|
671
|
-
per_dust_fee:
|
672
|
+
per_dust_fee: false,
|
672
673
|
reward_halving: 840_000,
|
673
674
|
retarget_time: 302400, # 3.5 days
|
674
675
|
dns_seeds: [
|
675
676
|
"dnsseed.litecointools.com",
|
676
677
|
"dnsseed.litecoinpool.org",
|
677
|
-
"
|
678
|
+
"seed-a.litecoin.loshan.co.uk",
|
679
|
+
"dnsseed.thrasher.io",
|
678
680
|
"dnsseed.koin-project.com",
|
679
|
-
"dnsseed.weminemnc.com",
|
680
681
|
],
|
681
682
|
genesis_hash: "12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2",
|
682
683
|
proof_of_work_limit: 0x1e0fffff,
|
@@ -705,23 +706,23 @@ module Bitcoin
|
|
705
706
|
})
|
706
707
|
|
707
708
|
NETWORKS[:litecoin_testnet] = NETWORKS[:litecoin].merge({
|
708
|
-
magic_head: "\
|
709
|
+
magic_head: "\xfd\xd2\xc8\xf1",
|
709
710
|
address_version: "6f",
|
710
|
-
p2sh_version: "
|
711
|
+
p2sh_version: "3a",
|
711
712
|
privkey_version: "ef",
|
712
713
|
extended_privkey_version: "0436ef7d",
|
713
714
|
extended_pubkey_version: "0436f6e1",
|
714
|
-
default_port:
|
715
|
+
default_port: 19335,
|
715
716
|
dns_seeds: [
|
716
|
-
"testnet-seed.litecointools.com",
|
717
717
|
"testnet-seed.ltc.xurious.com",
|
718
|
-
"
|
718
|
+
"seed-b.litecoin.loshan.co.uk",
|
719
|
+
"dnsseed-testnet.thrasher.io",
|
719
720
|
],
|
720
|
-
genesis_hash: "
|
721
|
+
genesis_hash: "4966625a4b2851d9fdee139e56211a0d88575f59ed816ff5e6a63deb4e3e29a0",
|
721
722
|
alert_pubkeys: ["04302390343f91cc401d56d68b123028bf52e5fca1939df127f63c6467cdf9c8e2c14b61104cf817d0b780da337893ecc4aaff1309e536162dabbdb45200ca2b0a"],
|
722
723
|
known_nodes: [],
|
723
724
|
checkpoints: {
|
724
|
-
546 => "
|
725
|
+
546 => "bf434a4c665307f52a041ee40faa7bf56284c5f3b5d11bf6182aba537961f86c",
|
725
726
|
}
|
726
727
|
})
|
727
728
|
|
@@ -751,7 +752,7 @@ module Bitcoin
|
|
751
752
|
retarget_time_new: 60, # 1 minute
|
752
753
|
target_spacing: 60, # block interval
|
753
754
|
dns_seeds: [
|
754
|
-
"seed.dogechain.info",
|
755
|
+
"seed.dogechain.info",
|
755
756
|
"seed.dogecoin.com",
|
756
757
|
],
|
757
758
|
genesis_hash: "1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691",
|
@@ -809,7 +810,7 @@ module Bitcoin
|
|
809
810
|
retarget_time_new: 60, # 1 minute
|
810
811
|
target_spacing: 60, # block interval
|
811
812
|
max_money: 100_000_000_000 * COIN,
|
812
|
-
dns_seeds: [
|
813
|
+
dns_seeds: [
|
813
814
|
"testdoge-seed.lionservers.de",
|
814
815
|
],
|
815
816
|
genesis_hash: "bb0a78264637406b6360aad926284d544d7049f45189db5664f3c4d07350559e",
|
@@ -817,7 +818,7 @@ module Bitcoin
|
|
817
818
|
alert_pubkeys: [],
|
818
819
|
known_nodes: [
|
819
820
|
"localhost",
|
820
|
-
"testnets.chain.so",
|
821
|
+
"testnets.chain.so",
|
821
822
|
],
|
822
823
|
checkpoints: {
|
823
824
|
546 => "ac537cfeda975e45040e9938d08e40a16e0fbd6388d02d9b4928b8ae0108c626",
|
data/lib/bitcoin/version.rb
CHANGED
@@ -677,7 +677,7 @@ describe 'Tx' do
|
|
677
677
|
tx.minimum_block_fee.should == 30_000
|
678
678
|
Bitcoin.network = :litecoin # change to litecoin
|
679
679
|
tx.minimum_relay_fee.should == 0
|
680
|
-
tx.minimum_block_fee.should ==
|
680
|
+
tx.minimum_block_fee.should == 100_000
|
681
681
|
end
|
682
682
|
|
683
683
|
it "should compare transactions" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitcoin-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This is a ruby library for interacting with the bitcoin protocol/network
|
14
14
|
email:
|