From cfb03164e08aba779e406f0dd09eb8e468460b88 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 16 Jun 2017 00:04:13 +0100 Subject: [PATCH] yet more fixes --- 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 9c40fab..507dbd1 100644 --- a/src/Shell/BlockShell.php +++ b/src/Shell/BlockShell.php @@ -356,7 +356,7 @@ class BlockShell extends Shell { // Create the output $conn->execute('INSERT INTO Outputs (TransactionId, Vout, Value, Type, ScriptPubKeyAsm, ScriptPubKeyHex, RequiredSignatures, Hash160, Addresses, Created, Modified) '. 'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, UTC_TIMESTAMP(), UTC_TIMESTAMP())', - [$out['TransactionId'], + [$txid, $out['Vout'], $out['Value'], $out['Type'], @@ -435,7 +435,7 @@ class BlockShell extends Shell { $in_entity = $this->Inputs->newEntity($in); $conn->execute('INSERT INTO Inputs (TransactionId, TransactionHash, AddressId, PrevoutHash, PrevoutN, Sequence, Value, ScriptSigAsm, ScriptSigHex, Created, Modified) ' . 'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, UTC_TIMESTAMP(), UTC_TIMESTAMP())', - [$in['TransactionId'], + [$txid, $in['TransactionHash'], isset($in['AddressId']) ? $in['AddressId'] : null, $in['PrevoutHash'],