目前剛開始研究比特幣
今天在試著接收魚池參數時
發現PrevHash有問題
先附上收到的參數
"id": null,
"method": "mining.notify",
"params": [
"BAvw7mAiGPyP6kqdSoJ65a",
"7dc004b772dd5371087d30cdc82a011824d0707e001108b90000000000000000",
"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff6403ab26082cfabe6d6d55dbaccac276a1f5e2329599ee865dbe51414f3d44c974696531943988ac0ae408000000f09f909f00174d696e656420627920627279616e6875616e673039323700000000000000000000000000000000000000000000000000",
"0345c4834a000000001976a914c825a1ecf2a6830c4401620c3a16f1995057c2ab88ac00000000000000002f6a24aa21a9ed5ff5b8bc8c4431dbc8abf81b74827a3ab388dc24430fb05807563af1170abdf208000000000000000000000000000000002c6a4c2952534b424c4f434b3abe2ee8fb1f08000216d1899aa519d74521670d50e5a420d5c113839816deb758eafc8738",
[
"c11c218fd0f606ae4d0841479520eef60287cebdbbb97d57a803d5d928da8a6c",
"e0674f99f4d15620b26eb31bdee461630192a98cda3e517c336beebb971b1e70",
"d62cc80ba7ff829a824ac1baa708f4d16dde86c60c0a4a9303effed396daddc0",
"72f6daf202a268b6e0b109343c01263a501050028b97650789803f9067deedaf",
"0c855f15756fdf1051d4bb887eb010d5309f5783a804be5ce46774848d707897",
"b5f079792841e1b3568650313b259f4201841619cb9e1faa8fc6e52f0dd4bd75"
],
"20000000",
"17365a17",
"5b5d1ea9",
false
]
}
其中PrevHash為7dc004b772dd5371087d30cdc82a011824d0707e001108b90000000000000000
將他轉為big-endian後可以發現前面只有16個0,但目前的block hash大部分都是18個0或以上,
而且去搜尋此hash也找不到一個存在的區塊,想請問是發生了甚麼問題?
另外有一個問題是我收到的diff 最後是8192,
我要如何去使用這個難度來驗證hash有無符合呢?
是要小於目前目標嗎?
=0x000000000007fff8000000000000000000000000000000000000000000000000 => 目前目標