fix p2pk hash index

This commit is contained in:
Akinwale Ariwodola 2018-07-26 07:27:12 +01:00
parent e25cd7807e
commit 3ad5db032b

View file

@ -1855,7 +1855,7 @@ print_r($response); print_r($json);
// Other standard: pay to pubkey hash // Other standard: pay to pubkey hash
$define['p2pk'] = array('type' => 'pubkeyhash', $define['p2pk'] = array('type' => 'pubkeyhash',
'reqSigs' => 1, 'reqSigs' => 1,
'data_index_for_hash' => 1); 'data_index_for_hash' => 0);
$rule['p2pk'] = [ $rule['p2pk'] = [
'0' => '/^[0-9a-f]+$/i', '0' => '/^[0-9a-f]+$/i',
'1' => '/^OP_CHECKSIG/' '1' => '/^OP_CHECKSIG/'