bitcoin_testnet 0.5.1 → 0.6.0

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
  SHA1:
3
- metadata.gz: 2fcbe4320fd084077ac6c4a41b014f5d48714471
4
- data.tar.gz: cc94f8ec6da3d51bb8f6f151a4992d581439a3a2
3
+ metadata.gz: 61c8d6ae54e0c0c6764b3e84d5cc34eac576ad02
4
+ data.tar.gz: 4033c18cc25e1d64c2455eae7a77e5ae2ae5cac4
5
5
  SHA512:
6
- metadata.gz: 769cd0647c62e03aab1e14591a0de373bf27d8c7bd399a36d0ddcc3d3ef346efb0fbbbe96697e65ddc50f6b4d31a0a7f5402abb8ec97b8df912ce4a8229d6b9a
7
- data.tar.gz: 6e0c20e4a8cb9933d094c86c1c9429a6d1fdcbf6f1f26f26edb2e3259e493b7f2bf12ab2f8401b84bc91b8ef3876cff47d298c67b6d4c440bbc753945fbd9cb2
6
+ metadata.gz: a003adf8e3c39c9841b7d5e580e91080ea27e15ddfe217d710ef98a6c87505cbdd540baeadb65c0859b18908e9bdff64b4b2b4eeac585a9bfb13dd18d32cb92f
7
+ data.tar.gz: 20141eb7ce48ae1da2e4b6216c7515d59188d4c6188e24f3ad49f103a993ce4537d1c0e93d92c418429287f1b9898d69c04cc54989f0a9ba32e615e1e3a91325
@@ -7,3 +7,6 @@
7
7
  [submodule "testnet"]
8
8
  path = testnet
9
9
  url = git://github.com/freewil/bitcoin-testnet-box.git
10
+ [submodule "spec/testnet"]
11
+ path = spec/testnet
12
+ url = git@github.com:freewil/bitcoin-testnet-box.git
@@ -1,3 +1,7 @@
1
+ # v0.6.0
2
+
3
+ - remove embedded testnet
4
+
1
5
  # v0.5.1
2
6
 
3
7
  - Do not record the vcr cassette if the example fails [#6]
@@ -12,8 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.summary = %q{A gem of helpers for making integration tests with the Bitcoin testnet a little easier.}
13
13
  gem.homepage = "https://github.com/ramontayag/ruby-bitcoin_testnet"
14
14
 
15
- testnet_files = `cd #{File.join(File.dirname(__FILE__), 'testnet')} && git ls-files`.split($/).map {|file| File.join('testnet', file)}
16
- gem.files = `git ls-files`.split($/) + testnet_files
15
+ gem.files = `git ls-files`.split($/)
17
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
18
  gem.require_paths = ["lib"]
@@ -1,3 +1,3 @@
1
1
  module BitcoinTestnet
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitcoin_testnet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-04 00:00:00.000000000 Z
11
+ date: 2014-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -82,20 +82,6 @@ files:
82
82
  - spec/bitcoin_testnet/prepares_command_spec.rb
83
83
  - spec/bitcoin_testnet/vcr_integrator_spec.rb
84
84
  - spec/spec_helper.rb
85
- - testnet/1/bitcoin.conf
86
- - testnet/1/testnet3/blk0001.dat
87
- - testnet/1/testnet3/blkindex.dat
88
- - testnet/1/testnet3/server.cert
89
- - testnet/1/testnet3/server.pem
90
- - testnet/1/testnet3/wallet.dat
91
- - testnet/2/bitcoin.conf
92
- - testnet/2/testnet3/blk0001.dat
93
- - testnet/2/testnet3/blkindex.dat
94
- - testnet/2/testnet3/server.cert
95
- - testnet/2/testnet3/server.pem
96
- - testnet/2/testnet3/wallet.dat
97
- - testnet/Makefile
98
- - testnet/README.txt
99
85
  homepage: https://github.com/ramontayag/ruby-bitcoin_testnet
100
86
  licenses: []
101
87
  metadata: {}
@@ -1,11 +0,0 @@
1
- # testnet-box functionality
2
- testnet=1
3
- irc=0
4
- upnp=0
5
-
6
- # listen on different ports than default testnet
7
- port=19000
8
- rpcport=19001
9
-
10
- rpcuser=admin1
11
- rpcpassword=123
@@ -1,21 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDdzCCAl+gAwIBAgIJALRvS2rwgZbGMA0GCSqGSIb3DQEBBQUAMFIxCzAJBgNV
3
- BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
4
- aWRnaXRzIFB0eSBMdGQxCzAJBgNVBAMMAkIxMB4XDTEyMTEyNjEwMTEwMFoXDTIy
5
- MTEyNDEwMTEwMFowUjELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
6
- ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDELMAkGA1UEAwwCQjEw
7
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDRqRUX3ZWsz+dHeXW1GsUv
8
- DjtEZ50D6W7hADs37J/7AFIjS6lBz6gsyHyFTsLQMl1aXl9PieM7n0gZFu10EtMZ
9
- 4Oavm/4D9oR3RlfYBBtT5EAIIjMMsCbu1aDSDcaFO0EZtcjWLRtKRgr9vQqbb7gq
10
- m8h4QFA0ulrs5zhh3qGU4VI16BIzawJKPBn7hCe0UMrRehkqfMH/TFQ0U0bMUnee
11
- CdwwpBeYK0k5GNfNNglaisQDtlwY3ZLq2lputWSeSFO9M63nG1VDeqgHJHzxTSCc
12
- blUcLRQ/XBKWfxA4KrsRHCPvaMkQbKEGwlRPB9aSWLTRU9/zE3duNclp2XNzmigX
13
- AgMBAAGjUDBOMB0GA1UdDgQWBBQXx0y+GgFd2mLy7MPRIZ5L7NF0zTAfBgNVHSME
14
- GDAWgBQXx0y+GgFd2mLy7MPRIZ5L7NF0zTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3
15
- DQEBBQ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IVATE KEY-----
@@ -1,13 +0,0 @@
1
- # testnet-box functionality
2
- testnet=1
3
- irc=0
4
- upnp=0
5
- listen=0
6
- connect=127.0.0.1:19000
7
-
8
- # listen on different ports than default testnet
9
- port=19010
10
- rpcport=19011
11
-
12
- rpcuser=admin2
13
- rpcpassword=123
@@ -1,21 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDdzCCAl+gAwIBAgIJAMY+8OceeojLMA0GCSqGSIb3DQEBBQUAMFIxCzAJBgNV
3
- BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
4
- aWRnaXRzIFB0eSBMdGQxCzAJBgNVBAMMAkIyMB4XDTEyMTEyNjEwMTEyMVoXDTIy
5
- MTEyNDEwMTEyMVowUjELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
6
- ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDELMAkGA1UEAwwCQjIw
7
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDTFDxL5aMTQjdDo9B7DTF7
8
- uUw+6nIc1pIhE5x/00Np1GQAYmCVhELrZXxvaNW/HN+lc+vMbYNWbWlrCif58Ary
9
- xq88Af/ZTGdkUNquVrf5X4DNN+xXMrODSrbEBxUsQ1GVWgiRbQAMlThwf4EckAHK
10
- 3Wk3vjradh0br4ubgmn97lOlD7qcTU/vkHsbZbZqQ1qW8swqawdML96mf0MvNzkb
11
- lP9ZL4/sqeC3PmS1NQxjO5fTIM0WepJQHpZwRMyjX3NZIBpvgKH6KxFDM6/BK5N8
12
- nJIXymk+MzP0RfaI+1XFiAzhPYxbYm4g1An+ptQNYliZAgxqoDmaZB/qkq+qdfxX
13
- AgMBAAGjUDBOMB0GA1UdDgQWBBS7NsClzei2aH2IBmRVK1ddjSY0FDAfBgNVHSME
14
- GDAWgBS7NsClzei2aH2IBmRVK1ddjSY0FDAMBgNVHR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iuBjA4t5Jw==
27
- -----END RSA PRIVATE KEY-----
@@ -1,29 +0,0 @@
1
- BITCOIND=bitcoind
2
- B1_FLAGS=
3
- B2_FLAGS=
4
- B1=$(BITCOIND) -datadir=1 $(B1_FLAGS)
5
- B2=$(BITCOIND) -datadir=2 $(B2_FLAGS)
6
-
7
- start:
8
- $(B1) -daemon
9
- $(B2) -daemon
10
-
11
- generate-true:
12
- $(B1) setgenerate true
13
-
14
- generate-false:
15
- $(B1) setgenerate false
16
-
17
- getinfo:
18
- $(B1) getinfo
19
- $(B2) getinfo
20
-
21
- stop:
22
- $(B1) stop
23
- $(B2) stop
24
-
25
- clean:
26
- git clean -fd 1/testnet3
27
- git clean -fd 2/testnet3
28
- git checkout -- 1/testnet3
29
- git checkout -- 2/testnet3
@@ -1,63 +0,0 @@
1
- This is a private, difficulty 1 testnet in a box.
2
-
3
- You must have bitcoind installed on your system and in the path. This has only been tested against version 0.7.2.
4
-
5
- Use it as follows:
6
-
7
- $ make start
8
-
9
- This will start two nodes. You need two because otherwise the node won't
10
- generate blocks. You now have a private testnet:
11
-
12
- $ make getinfo
13
- bitcoind -datadir=1 getinfo
14
- {
15
- "version" : 60006,
16
- "protocolversion" : 60000,
17
- "walletversion" : 60000,
18
- "balance" : 550.00000000,
19
- "blocks" : 130,
20
- "connections" : 1,
21
- "proxy" : "",
22
- "difficulty" : 0.12500000,
23
- "testnet" : true,
24
- "keypoololdest" : 1335827404,
25
- "keypoolsize" : 101,
26
- "paytxfee" : 0.00000000,
27
- "errors" : ""
28
- }
29
- bitcoind -datadir=2 getinfo
30
- {
31
- "version" : 60006,
32
- "protocolversion" : 60000,
33
- "walletversion" : 60000,
34
- "balance" : 0.00000000,
35
- "blocks" : 130,
36
- "connections" : 1,
37
- "proxy" : "",
38
- "difficulty" : 0.12500000,
39
- "testnet" : true,
40
- "keypoololdest" : 1335826149,
41
- "keypoolsize" : 101,
42
- "paytxfee" : 0.00000000,
43
- "errors" : ""
44
- }
45
-
46
- To start generating blocks:
47
-
48
- $ make generate-true
49
-
50
- To stop generating blocks:
51
-
52
- $ make generate-false
53
-
54
- To stop the two nodes:
55
-
56
- $ make stop
57
-
58
- To clean up any files created while running the testnet
59
- (and restore to the original state of 130 blocks)
60
-
61
- $ make clean
62
-
63
- Like all testnet nodes, it is listening on port 18333.