Post
Topic
Board Mining software (miners)
Re: New demonstration CPU miner available
by
lfm
on 15/01/2011, 22:51:15 UTC
something doesn't seem to be quite right with algo_via on 64bit yet

here's the output of cpuminer for a positive hash that was found running on testnet:
Code:
DBG: found zeroes in hash:
52a65c69ea7bfda3788ee2337f9bece38dbdc6d918c4e16c05f567b700000000
PROOF OF WORK FOUND?  submitting...
PROOF OF WORK RESULT: true (yay!!!)

here is the correspoding output from bitcoins testnet debug log
Code:
BitcoinMiner:
proof-of-work found
  hash: 0000000005f567b718c4e16c8dbdc6d97f9bece3788ee233ea7bfda352a65c69
target: 0000000015ebbe00000000000000000000000000000000000000000000000000
CBlock(hash=0000000005f567b718c4, ver=1, hashPrevBlock=00000000144f6debddf8, hashMerkleRoot=d645677c76, nTime=1294828227, nBits=1c15ebbe, nNonce=14019820, vtx=1)
  CTransaction(hash=d645677c76, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, -1), coinbase 04beeb151c0174)
    CTxOut(nValue=50.00000000, scriptPubKey=04bfa0f2be2ed07c434e900ec80e09)
  vMerkleTree: d645677c76
01/12/11 10:30 generated 50.00

it seems the byte swapping isn't working fully correctly yet, any hints?

nope, this is all correct. The line:
52a65c69ea7bfda3788ee2337f9bece38dbdc6d918c4e16c05f567b700000000

is actually the same value as the line:
  hash: 0000000005f567b718c4e16c8dbdc6d97f9bece3788ee233ea7bfda352a65c69

which looks like a 32 bit word swap but the byteswap involved is hidden

If this was not done right you would not have gotten the 50.00 btc at the end.