mirror of
https://github.com/planetmint/planetmint.git
synced 2025-06-05 05:36:41 +00:00
fixed init.lua script issue
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
7769b65130
commit
6c33a78068
@ -384,11 +384,11 @@ function migrate()
|
||||
parts = {{field = 'public_keys[*]', type = 'string' }}
|
||||
})
|
||||
|
||||
atomic(1000, outputs:pairs(), function(output)
|
||||
atomic(1000, box.space.outputs:pairs(), function(output)
|
||||
utxos:insert{output[0], output[1], output[2], output[3], output[4], output[5]}
|
||||
end)
|
||||
atomic(1000, utxos:pairs(), function(utxo)
|
||||
spending_transaction = 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[5], utxo[4]}
|
||||
if table.getn(spending_transaction) > 0 then
|
||||
utxos:delete(utxo[0])
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user