blockbook icon indicating copy to clipboard operation
blockbook copied to clipboard

Question ERC721/ERC1155?

Open Droppix opened this issue 3 years ago • 5 comments

Hi,

I see you completed ERC721/ERC1155 on https://github.com/trezor/blockbook/commits/eth_update, is the version installable (in beta)? If yes, I suppose that the database (rockdb) must be completely rebuilt?

Thanks

Droppix avatar Jun 29 '22 15:06 Droppix

Hi, it must be completely rebuilt. In addition to that if you want to index internal transactions, you have to run Ethereum in the archive mode, which makes the backend DB huge and the initial sync (both backend and Blockbook) is very slow. We are currently testing it and completing some additional tasks. You can try it certainly but not yet tested enough at this moment.

martinboehm avatar Jun 29 '22 20:06 martinboehm

Hi,

Thanks for your response.

I will try to do some tests.

Droppix avatar Jun 30 '22 10:06 Droppix

Hi, it must be completely rebuilt. In addition to that if you want to index internal transactions, you have to run Ethereum in the archive mode, which makes the backend DB huge and the initial sync (both backend and Blockbook) is very slow. We are currently testing it and completing some additional tasks. You can try it certainly but not yet tested enough at this moment.

This is awesome news to hear you are working on improving the eth side of things. Is there a milestone to follow progress, or can it just be expected that the next formal release will include these improvements?

I have been working on adding Avalanche support leveraging as much from the ethereum logic as possible and wondering if I should probably just wait to add post these changes assuming a fair bit of code additions/changes

kaladinlight avatar Jun 30 '22 18:06 kaladinlight

Hello Martin,

Just a small question, to be sure: The synchronization of the backend in "full" mode (on mainnet) is very long, I'm at 6.194.643 blocks out of 15.044.622 (that is 40% after 3 days, on server 32GB - SSD 1TB), do we really have to wait for 70% filling to launch the "blockbook" service, or can we do it at any time?

Thanks

Droppix avatar Jul 03 '22 08:07 Droppix

You can start syncing any time, however without the internal transactions the sync is very fast (you would need archive mode for internal transactions) and you will not loose much time by starting Blockbook when the backend is fully synced.

martinboehm avatar Aug 01 '22 15:08 martinboehm