lib/bitcoin.rb in bitcoin-ruby-0.0.10 vs lib/bitcoin.rb in bitcoin-ruby-0.0.11
- old
+ new
@@ -13,11 +13,13 @@
autoload :P, 'bitcoin/protocol'
autoload :Script, 'bitcoin/script'
autoload :VERSION, 'bitcoin/version'
autoload :Logger, 'bitcoin/logger'
autoload :Key, 'bitcoin/key'
+ autoload :ExtKey, 'bitcoin/ext_key'
autoload :Builder, 'bitcoin/builder'
+ autoload :BloomFilter,'bitcoin/bloom_filter'
autoload :Dogecoin, 'bitcoin/dogecoin'
autoload :Litecoin, 'bitcoin/litecoin'
autoload :ContractHash, 'bitcoin/contracthash'
@@ -268,11 +270,11 @@
# get merkle root from +branch+ and +target+.
def mrkl_branch_root(branch, target, idx)
branch.each do |hash|
a, b = *( idx & 1 == 0 ? [target, hash] : [hash, target] )
idx >>= 1;
- target = bitcoin_mrkl( a, b )
+ target = bitcoin_mrkl( a, b )
end
target
end
def sign_data(key, data)
@@ -812,10 +814,10 @@
],
genesis_hash: "bb0a78264637406b6360aad926284d544d7049f45189db5664f3c4d07350559e",
proof_of_work_limit: 0x1e0fffff,
alert_pubkeys: [],
known_nodes: [
- "localhost",
+ "localhost",
"testnets.chain.so",
],
checkpoints: {
546 => "ac537cfeda975e45040e9938d08e40a16e0fbd6388d02d9b4928b8ae0108c626",
},