mirror of
https://github.com/planetmint/planetmint.git
synced 2025-06-11 16:46:37 +00:00
fixed indexing issue on tarantool migrate script
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
6c33a78068
commit
61dd9b9b37
@ -385,12 +385,12 @@ function migrate()
|
||||
})
|
||||
|
||||
atomic(1000, box.space.outputs:pairs(), function(output)
|
||||
utxos:insert{output[0], output[1], output[2], output[3], output[4], output[5]}
|
||||
utxos:insert{output[1], output[2], output[3], output[4], output[5], output[6]}
|
||||
end)
|
||||
atomic(1000, utxos:pairs(), function(utxo)
|
||||
spending_transaction = box.space.transactions.index.spending_transaction_by_id_and_output_index:select{utxo[5], utxo[4]}
|
||||
spending_transaction = box.space.transactions.index.spending_transaction_by_id_and_output_index:select{utxo[6], utxo[5]}
|
||||
if table.getn(spending_transaction) > 0 then
|
||||
utxos:delete(utxo[0])
|
||||
utxos:delete(utxo[1])
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
Loading…
x
Reference in New Issue
Block a user