Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying the executable #3836

Open
tjayrush opened this issue Jul 19, 2024 · 0 comments
Open

Copying the executable #3836

tjayrush opened this issue Jul 19, 2024 · 0 comments

Comments

@tjayrush
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant