consensus: let time.Timer handle non-positive durations

This commit is contained in:
Ethan Buchman
2017-01-11 10:24:40 -05:00
parent 12d92fd5db
commit 55b4bfa1fe
4 changed files with 35 additions and 22 deletions
+3
View File
@@ -22,6 +22,9 @@ tendermint node --proxy_app=dummy &> /dev/null &
sleep 5
killall tendermint
# /q would print up to and including the match, then quit.
# /Q doesn't include the match.
# http://unix.stackexchange.com/questions/11305/grep-show-all-the-file-up-to-the-match
sed '/HEIGHT: 2/Q' ~/.tendermint/data/cs.wal/wal > consensus/test_data/empty_block.cswal
reset