spec/bitcoin/protocol/aux_pow_spec.rb in bitcoin-ruby-0.0.7 vs spec/bitcoin/protocol/aux_pow_spec.rb in bitcoin-ruby-0.0.8

- old
+ new

@@ -15,18 +15,18 @@ it "should parse AuxPow" do @aux_pow.should != nil @aux_pow.block_hash.hth.should == "b42124fd99e67ddabe52ebbfcb30a82b8c74268a320b3c5e2311000000000000" - @aux_pow.branch.map(&:hth).should == [ - "6d4febe909ffec61fb8e7bf24ef4444f070f74b208502285528a9686ba792fc2", - "d052728459450cec6ff81072c6bd3ec2fd186eaadb09429da7cab0be73646999", - "64c5e7e42a6cde585602fdfda6d7e5d9232db2c176a49278268cec09f3cfcb20", - "4e9406d6ce9ef751242bb9a63e7c2009746b3736c356ed5d738dadd6937531e4" ] - @aux_pow.mrkl_index.should == 0 - @aux_pow.aux_branch.should == [] - @aux_pow.aux_index.should == 0 + @aux_pow.coinbase_branch.should == [ + "c22f79ba86968a5285225008b2740f074f44f44ef27b8efb61ecff09e9eb4f6d", + "99696473beb0caa79d4209dbaa6e18fdc23ebdc67210f86fec0c4559847252d0", + "20cbcff309ec8c267892a476c1b22d23d9e5d7a6fdfd025658de6c2ae4e7c564", + "e4317593d6ad8d735ded56c336376b7409207c3ea6b92b2451f79eced606944e" ] + @aux_pow.coinbase_index.should == 0 + @aux_pow.chain_branch.should == [] + @aux_pow.chain_index.should == 0 @aux_pow.parent_block.hash.should == "00000000000011235e3c0b328a26748c2ba830cbbfeb52beda7de699fd2421b4" end it "#to_payload" do @@ -40,6 +40,6 @@ it "#to_json" do P::Block.from_json(@blk.to_json).to_payload.should == @data end - end +end