yet more fixes

This commit is contained in:
Akinwale Ariwodola 2017-06-16 00:04:13 +01:00
parent 385cac5608
commit cfb03164e0

View file

@ -356,7 +356,7 @@ class BlockShell extends Shell {
// Create the output // Create the output
$conn->execute('INSERT INTO Outputs (TransactionId, Vout, Value, Type, ScriptPubKeyAsm, ScriptPubKeyHex, RequiredSignatures, Hash160, Addresses, Created, Modified) '. $conn->execute('INSERT INTO Outputs (TransactionId, Vout, Value, Type, ScriptPubKeyAsm, ScriptPubKeyHex, RequiredSignatures, Hash160, Addresses, Created, Modified) '.
'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, UTC_TIMESTAMP(), UTC_TIMESTAMP())', 'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, UTC_TIMESTAMP(), UTC_TIMESTAMP())',
[$out['TransactionId'], [$txid,
$out['Vout'], $out['Vout'],
$out['Value'], $out['Value'],
$out['Type'], $out['Type'],
@ -435,7 +435,7 @@ class BlockShell extends Shell {
$in_entity = $this->Inputs->newEntity($in); $in_entity = $this->Inputs->newEntity($in);
$conn->execute('INSERT INTO Inputs (TransactionId, TransactionHash, AddressId, PrevoutHash, PrevoutN, Sequence, Value, ScriptSigAsm, ScriptSigHex, Created, Modified) ' . $conn->execute('INSERT INTO Inputs (TransactionId, TransactionHash, AddressId, PrevoutHash, PrevoutN, Sequence, Value, ScriptSigAsm, ScriptSigHex, Created, Modified) ' .
'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, UTC_TIMESTAMP(), UTC_TIMESTAMP())', 'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, UTC_TIMESTAMP(), UTC_TIMESTAMP())',
[$in['TransactionId'], [$txid,
$in['TransactionHash'], $in['TransactionHash'],
isset($in['AddressId']) ? $in['AddressId'] : null, isset($in['AddressId']) ? $in['AddressId'] : null,
$in['PrevoutHash'], $in['PrevoutHash'],