mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Merge branch 'rama-integration-beta' into rama-blocked-events
This commit is contained in:
commit
e3fc6654db
1 changed files with 3 additions and 7 deletions
|
|
@ -90,7 +90,7 @@ export function createRamaProxy(ramaPath) {
|
||||||
* @returns {Promise<RamaProxyInstance>}
|
* @returns {Promise<RamaProxyInstance>}
|
||||||
*/
|
*/
|
||||||
async function startRama(ramaPath, dataFolder, reportingUrl) {
|
async function startRama(ramaPath, dataFolder, reportingUrl) {
|
||||||
const startTime = Date.now();
|
const startTime = Date.now();
|
||||||
const args = [
|
const args = [
|
||||||
"--secrets",
|
"--secrets",
|
||||||
"memory",
|
"memory",
|
||||||
|
|
@ -99,12 +99,8 @@ async function startRama(ramaPath, dataFolder, reportingUrl) {
|
||||||
"--reporting-endpoint",
|
"--reporting-endpoint",
|
||||||
reportingUrl,
|
reportingUrl,
|
||||||
];
|
];
|
||||||
const process =
|
const stdio = getLoggingLevel() === LOGGING_VERBOSE ? "inherit" : "pipe";
|
||||||
getLoggingLevel() === LOGGING_VERBOSE
|
const process = spawn(ramaPath, args, { stdio: stdio });
|
||||||
? spawn(ramaPath, args, {
|
|
||||||
stdio: "inherit",
|
|
||||||
})
|
|
||||||
: spawn(ramaPath, args);
|
|
||||||
|
|
||||||
// wait for the proxy process to start (poll for proxy.addr.txt file)
|
// wait for the proxy process to start (poll for proxy.addr.txt file)
|
||||||
const proxyAddrPath = join(dataFolder, "proxy.addr.txt");
|
const proxyAddrPath = join(dataFolder, "proxy.addr.txt");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue