1
0
mirror of https://github.com/GOSTSec/gostexplr synced 2025-01-29 16:04:32 +00:00

Several bugs

This commit is contained in:
xcps 2019-03-16 21:09:58 +05:00 committed by R4SAS
parent 29ec6a5769
commit 8418db9df9

View File

@ -105,7 +105,7 @@ async function saveTransaction(txid, blockHeight) {
// });
// }
sync_sql += `
INSERT INTO Addresses (address) VALUES ("${address}");
INSERT IGNORE INTO Addresses (address) VALUES ("${address}");
SET @addrid = (
SELECT IF(
ROW_COUNT() > 0,
@ -113,7 +113,7 @@ async function saveTransaction(txid, blockHeight) {
(
SELECT id
FROM Addresses
WHERE address='Ga68WPtiA15sPyZzMXR9rUQZNz1AEpUaKW1'
WHERE address='${address}'
)
)
);
@ -153,7 +153,7 @@ async function saveTransaction(txid, blockHeight) {
// }
sync_sql += `
SET @vin = (
SELECT id
SELECT Vouts.id
FROM Vouts
INNER JOIN TransactionVouts
ON Vouts.id=TransactionVouts.VoutId