From 41dc888d0e1624b55f62e3517c9d8d1d8a8bdc18 Mon Sep 17 00:00:00 2001 From: kayan Date: Tue, 27 Aug 2024 14:53:11 +0800 Subject: [PATCH] switch to instant finality at launch --- tests/nodeos_eos_evm_test.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/nodeos_eos_evm_test.py b/tests/nodeos_eos_evm_test.py index 381fc23..a8981d8 100755 --- a/tests/nodeos_eos_evm_test.py +++ b/tests/nodeos_eos_evm_test.py @@ -275,7 +275,7 @@ def toDict(dictToParse): extraNodeosArgs="--contracts-console --resource-monitor-not-shutdown-on-threshold-exceeded" Print("Stand up cluster") - if cluster.launch(pnodes=pnodes, totalNodes=total_nodes, extraNodeosArgs=extraNodeosArgs, specificExtraNodeosArgs=specificExtraNodeosArgs,loadSystemContract=False,delay=5) is False: + if cluster.launch(pnodes=pnodes, totalNodes=total_nodes, extraNodeosArgs=extraNodeosArgs, specificExtraNodeosArgs=specificExtraNodeosArgs,loadSystemContract=False,activateIF=True,delay=5) is False: errorExit("Failed to stand up eos cluster.") Print ("Wait for Cluster stabilization") @@ -284,6 +284,10 @@ def toDict(dictToParse): errorExit("Cluster never stabilized") Print ("Cluster stabilized") + Utils.Print("make sure instant finality is switched") + info = cluster.biosNode.getInfo(exitOnError=True) + assert (info["head_block_num"] - info["last_irreversible_block_num"]) < 9, "Instant finality enabled LIB diff should be small" + prodNode = cluster.getNode(0) nonProdNode = cluster.getNode(1) @@ -1120,13 +1124,6 @@ def get_block(num): Utils.Print(" Found ERROR in EOS EVM RPC log: ", line) foundErr = True - Utils.Print("Switching to Savanna") - cluster.activateInstantFinality() - - info = cluster.biosNode.getInfo(exitOnError=True) - assert (info["head_block_num"] - info["last_irreversible_block_num"]) < 9, "Instant finality enabled LIB diff should be small" - - # -------------------------------------------- # EVM -> EOS # 0x9E126C57330FA71556628e0aabd6B6B6783d99fA private key: 0xba8c9ff38e4179748925335a9891b969214b37dc3723a1754b8b849d3eea9ac0