tilt: shorten terra block time (#1744)

Change-Id: I35cce03ae6e82b522482f2c1c40ccb6819eb51f6
This commit is contained in:
Hendrik Hofstadt 2022-10-17 18:13:19 +02:00 committed by GitHub
parent bdd824cfaa
commit 4a2fbd923f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 10 deletions

View File

@ -370,7 +370,7 @@ timeout_precommit_delta = "500ms"
# How long we wait after committing a block, before starting on the new
# height (this gives us a chance to receive some more precommits, even
# though we already have +2/3).
timeout_commit = "5s"
timeout_commit = "0.5s"
# How many blocks to look back to check existence of the node's consensus votes before joining consensus
# When non-zero, the node will panic upon restart

View File

@ -47,7 +47,7 @@ db_backend = "goleveldb"
db_dir = "data"
# Output level for logging, including package level options
log_level = "debug"
log_level = "info"
# Output format: 'plain' (colored text) or 'json'
log_format = "plain"
@ -335,7 +335,7 @@ timeout_precommit_delta = "500ms"
# How long we wait after committing a block, before starting on the new
# height (this gives us a chance to receive some more precommits, even
# though we already have +2/3).
timeout_commit = "5s"
timeout_commit = "0.5s"
# How many blocks to look back to check existence of the node's consensus votes before joining consensus
# When non-zero, the node will panic upon restart

View File

@ -15,13 +15,7 @@ function sleep(ms) {
}
async function broadcastAndWait(terra, tx) {
const response = await terra.tx.broadcast(tx);
let currentHeight = (await terra.tendermint.blockInfo()).block.header.height;
while (currentHeight <= response.height) {
await sleep(100);
currentHeight = (await terra.tendermint.blockInfo()).block.header.height;
}
return response;
return await terra.tx.broadcast(tx);
}
/*