From 54ec41d63701b9e81075945408e6a0c95d4aecf7 Mon Sep 17 00:00:00 2001 From: simonjiao Date: Wed, 25 Dec 2024 09:36:40 +0800 Subject: [PATCH] donot build fresh stdlib to avoid call stack overflow --- genesis/src/lib.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/genesis/src/lib.rs b/genesis/src/lib.rs index 3cb054d6da..20af1c47a5 100644 --- a/genesis/src/lib.rs +++ b/genesis/src/lib.rs @@ -145,12 +145,11 @@ impl Genesis { pub fn build_genesis_transaction(net: &ChainNetwork) -> Result { let package = build_stdlib_package( net, - if net.is_test() || net.is_dag_test() { - StdLibOptions::Fresh - } else { - // todo: currently only support latest stdlib version. - StdLibOptions::Compiled(StdlibVersion::Latest) - }, + //if net.is_test() || net.is_dag_test() { + // StdLibOptions::Fresh + //} else { + // todo: currently only support latest stdlib version. + StdLibOptions::Compiled(StdlibVersion::Latest), //}, )?; Self::build_genesis_transaction_with_package(net, package) }