tilt: shorten terra block time (#1744)
Change-Id: I35cce03ae6e82b522482f2c1c40ccb6819eb51f6
This commit is contained in:
parent
bdd824cfaa
commit
4a2fbd923f
|
@ -370,7 +370,7 @@ timeout_precommit_delta = "500ms"
|
||||||
# How long we wait after committing a block, before starting on the new
|
# 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
|
# height (this gives us a chance to receive some more precommits, even
|
||||||
# though we already have +2/3).
|
# 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
|
# 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
|
# When non-zero, the node will panic upon restart
|
||||||
|
|
|
@ -47,7 +47,7 @@ db_backend = "goleveldb"
|
||||||
db_dir = "data"
|
db_dir = "data"
|
||||||
|
|
||||||
# Output level for logging, including package level options
|
# Output level for logging, including package level options
|
||||||
log_level = "debug"
|
log_level = "info"
|
||||||
|
|
||||||
# Output format: 'plain' (colored text) or 'json'
|
# Output format: 'plain' (colored text) or 'json'
|
||||||
log_format = "plain"
|
log_format = "plain"
|
||||||
|
@ -335,7 +335,7 @@ timeout_precommit_delta = "500ms"
|
||||||
# How long we wait after committing a block, before starting on the new
|
# 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
|
# height (this gives us a chance to receive some more precommits, even
|
||||||
# though we already have +2/3).
|
# 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
|
# 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
|
# When non-zero, the node will panic upon restart
|
||||||
|
|
|
@ -15,13 +15,7 @@ function sleep(ms) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function broadcastAndWait(terra, tx) {
|
async function broadcastAndWait(terra, tx) {
|
||||||
const response = await terra.tx.broadcast(tx);
|
return 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue