From 0c0c55cb407cd621e47166a93d06435058b05446 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Fri, 29 Nov 2024 17:57:41 +0800 Subject: [PATCH] Problem: no enough db type tested for nodes add goleveldb --- integration_tests/configs/default.jsonnet | 13 +++++++++++++ integration_tests/utils.py | 1 + scripts/.env | 1 + 3 files changed, 15 insertions(+) diff --git a/integration_tests/configs/default.jsonnet b/integration_tests/configs/default.jsonnet index f42efc5ac5..3a37464ffc 100644 --- a/integration_tests/configs/default.jsonnet +++ b/integration_tests/configs/default.jsonnet @@ -59,6 +59,19 @@ client_config: { 'broadcast-mode': 'sync', }, + config: { + db_backend: 'goleveldb', + }, + 'app-config': { + 'app-db-backend': 'goleveldb', + }, + }, { + coins: '1000000000000000000stake,10000000000000000000000basetcro', + staked: '1000000000000000000stake', + mnemonic: '${VALIDATOR3_MNEMONIC}', + client_config: { + 'broadcast-mode': 'sync', + }, config: { db_backend: 'pebbledb', }, diff --git a/integration_tests/utils.py b/integration_tests/utils.py index c4474d8ce6..5ea3680dbb 100644 --- a/integration_tests/utils.py +++ b/integration_tests/utils.py @@ -36,6 +36,7 @@ ACCOUNTS = { "validator": Account.from_mnemonic(os.getenv("VALIDATOR1_MNEMONIC")), "validator2": Account.from_mnemonic(os.getenv("VALIDATOR2_MNEMONIC")), + "validator3": Account.from_mnemonic(os.getenv("VALIDATOR3_MNEMONIC")), "community": Account.from_mnemonic(os.getenv("COMMUNITY_MNEMONIC")), "signer1": Account.from_mnemonic(os.getenv("SIGNER1_MNEMONIC")), "signer2": Account.from_mnemonic(os.getenv("SIGNER2_MNEMONIC")), diff --git a/scripts/.env b/scripts/.env index 647508dd10..8626f66794 100644 --- a/scripts/.env +++ b/scripts/.env @@ -1,6 +1,7 @@ export PASSWORD='123456' export VALIDATOR1_MNEMONIC="visit craft resemble online window solution west chuckle music diesel vital settle comic tribe project blame bulb armed flower region sausage mercy arrive release" export VALIDATOR2_MNEMONIC="direct travel shrug hand twice agent sail sell jump phone velvet pilot mango charge usual multiply orient garment bleak virtual action mention panda vast" +export VALIDATOR3_MNEMONIC="panda much deny whale fun iron liquid rookie rice ridge artist slush legend salad adapt public all thunder galaxy give ostrich endless prosper good" export COMMUNITY_MNEMONIC="notable error gospel wave pair ugly measure elite toddler cost various fly make eye ketchup despair slab throw tribe swarm word fruit into inmate" export SIGNER1_MNEMONIC="shed crumble dismiss loyal latin million oblige gesture shrug still oxygen custom remove ribbon disorder palace addict again blanket sad flock consider obey popular" export SIGNER2_MNEMONIC="night renew tonight dinner shaft scheme domain oppose echo summer broccoli agent face guitar surface belt veteran siren poem alcohol menu custom crunch index"