-
Notifications
You must be signed in to change notification settings - Fork 370
Tool to migrate IRI DB to Hornet DB #1858
Comments
I suggest the tool reads in a RocksDB database and then acts like a peer to a Hornet node because otherwise you have to start to fiddle around with how the data structures look in Hornet when creating this tool. As a metric: synchronizing from Hornet to Hornet from the last global snapshot (summer 2019) takes about 2-3 days, so the tool should have about the same speed. |
We can accomplish this by syncing iri to hornet. But because of the way iri handles transaction requests currently, the sync could take a long time. @luca-moser said a similar sync took about 2-3 weeks from iri to hornet. The same for hornet-hornet took about 3 days. Implementing For the purpose of this migration, we will need most of it except for
Then we can release this extension of iri to be used for the migration of the db to hornet. |
@luca-moser I just think writing a tool will always be faster than using the gossip layer. Those 3 days may turn into hours. Also, if for some reason people want data that wasn't approved by a milestone (I have no idea why) then gossip won't do for them Having said that, if we still go the STING way the we might as well have heartbeat just because the code was already written in #1825 |
@jakubcech should we care about unconfirmed txs? |
We should care about unconfirmed transactions, yes. |
I see I incorrectly wrong the opposite in a DM |
@luca-moser given that we need unconfirmed txs, syncing will not work. Hornet has models that iri does not have and vice versa. |
With the constraint that unconfirmed txs are required, here are the options that we have left.
With this approach, we will migrate all transactions and let hornet worry about storing them. It would have been best to broadcast txs in their insertion order so that hornet has txs that it requires to solidify quickly.
IMO, the easiest thing to do is option 1. |
First version of this tool here: https://github.com/acha-bill/iri-db-migration |
I've tested this tool on iri dbs that are older/newer than globalsnapshot and it works fine. |
Description
We want a tool that allows us to take a Mainnet DB of IRI 1.8.5, 1.8.6 and migrate it to the Hornet DB format.
Motivation
Allow partners and anyone who wants to retain DB history to migrate from IRI to Hornet.
Requirements
The text was updated successfully, but these errors were encountered: