trueblocks-core
trueblocks-core copied to clipboard
Copying the executable
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:
- You can customize where the caches are inside the trueblocks.toml file (
indexPathandcachePath), but maybe that doesn't solve your issues. - 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 calledconfigand items in a folder calledabis. Theabisfolder is a cache, so if it's not there things might be a bit slower initially, but it should work. Theconfighas two things of interest:namesandprefundbalances. Both of these are "nice-to-have" but the core will work without them. ThetrueBlocks.tomlfile 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 fortrueBlocks.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.