Consensys / bela

Besu Lanterna tool, visualize, interrogate and manage besu storage db offline
Apache License 2.0
2 stars 1 forks source link

Fixes for FOREST mode #66

Closed siladu closed 5 days ago

siladu commented 6 days ago

Currently Bela won't load most views due to a dependency on the Bonsai column families. This is a fairly naive fix to limit the scope to Bonsai when BONSAI is detected in the database. In FOREST mode, some functionality may still not work, but at least it loads the views now.

  1. Only load Bonsai-specific menu items is database is BONSAI
  2. Refactor to use BelaContext instead of StorageProviderFactory in most places
  3. BelaContext now shares the DataStorageFormat and we guard the creation of the BonsaiWorldStateArchive - it is just null for FOREST, however I don't think it is used until we start using the TransactionTraceBrowser.
garyschulte commented 5 days ago

LGTM, comments are not blockers since this should be strictly better than the current support for forest