trueblocks-core icon indicating copy to clipboard operation
trueblocks-core copied to clipboard

Copying the executable

Open tjayrush opened this issue 1 year ago • 0 comments

User Comment:

One other change I was looking to do was having a custom directory to store configuration and the cache. I'd be interesting in shipping chifra with the application but as of the moment the compile step also sets up some pre-requisite directories and configuration.

My Reponse:

Interesting...two things:

  1. You can customize where the caches are inside the trueblocks.toml file (indexPath and cachePath), but maybe that doesn't solve your issues.
  2. You're right, there needs to be a "build step" that installs some files. (I think there's only a few -- the trueblocks.toml, items in a folder called config and items in a folder called abis. The abis folder is a cache, so if it's not there things might be a bit slower initially, but it should work. The config has two things of interest: names and prefund balances. Both of these are "nice-to-have" but the core will work without them. The trueBlocks.toml file is required, but there might be a simple way to check for that file locally in the same folder that the application is running from. I don't have time to program that, but if you wanted to submit a PR, I'd consider it. Search for trueBlocks.toml. Warning, though. It may be much more complicated than it looks at first.

I'll copy this convo up to an issue just to save it for some possible future.

tjayrush avatar Jul 19 '24 12:07 tjayrush