From 3ad5db032b8cc10e6ccb8a797c1bb89547c626e8 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 26 Jul 2018 07:27:12 +0100 Subject: [PATCH] fix p2pk hash index --- src/Shell/BlockShell.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Shell/BlockShell.php b/src/Shell/BlockShell.php index 85ca7dc..efb3855 100644 --- a/src/Shell/BlockShell.php +++ b/src/Shell/BlockShell.php @@ -1304,7 +1304,7 @@ print_r($response); print_r($json); } catch (\Exception $e) { // ignore possible disconnect errors } - + $conn->connect(); } @@ -1855,7 +1855,7 @@ print_r($response); print_r($json); // Other standard: pay to pubkey hash $define['p2pk'] = array('type' => 'pubkeyhash', 'reqSigs' => 1, - 'data_index_for_hash' => 1); + 'data_index_for_hash' => 0); $rule['p2pk'] = [ '0' => '/^[0-9a-f]+$/i', '1' => '/^OP_CHECKSIG/'