feat(circuits): Set circuits environment (#8)

* Set circuits environment

* Add info log
This commit is contained in:
Daniel Sanchez 2026-02-12 14:17:05 +01:00 committed by GitHub
parent 6f2e7a770d
commit 4be5332d26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

12
flake.lock generated
View File

@ -23,11 +23,11 @@
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1770819486,
"narHash": "sha256-a9/K6yHODsg9vw9IUlhLAd10aDwsd8YPXjPA6GbPvl8=",
"lastModified": 1770888466,
"narHash": "sha256-7IJz+UIwa8QPg81cvqunpnpO87VUdWt0TcPz7HGBnYE=",
"owner": "logos-blockchain",
"repo": "logos-blockchain",
"rev": "1a49d7cb0191c8b19ff9622cb7be041582f794b2",
"rev": "3ef7a137b91c4a5a7708405815354ff58e0e179c",
"type": "github"
},
"original": {
@ -394,11 +394,11 @@
]
},
"locked": {
"lastModified": 1770154824,
"narHash": "sha256-WGI+3FkPdeytfLJ3ZJYr1O8esUnQjcmMJEYwB/EBZMs=",
"lastModified": 1770837874,
"narHash": "sha256-wr75lv1q4U1FS5+l/6ypwzJFJe06l2RyUvx1npoRS88=",
"owner": "logos-co",
"repo": "logos-liblogos",
"rev": "901dd86d47216b15b6f1260b7b6bb4ecd88a8f9d",
"rev": "e3741c01fd3abf6b7bd9ff2fa8edf89c41fc0cea",
"type": "github"
},
"original": {

View File

@ -50,6 +50,10 @@ int LogosBlockchainModule::start(const QString& config_path, const QString& depl
return 1;
}
// Set LOGOS_BLOCKCHAIN_CIRCUITS env variable
QString circuits_path = logosAPI->property("modulePath").toString().append(QString::fromUtf8("\\circuits"));
qputenv("LOGOS_BLOCKCHAIN_CIRCUITS", circuits_path.toUtf8());
qInfo() << "LOGOS_BLOCKCHAIN_CIRCUITS set to:" << circuits_path;
QString effective_config_path = config_path;
if (effective_config_path.isEmpty()) {