See https://github.com/tendermint/tendermint/pull/1349/files#diff-8c6b1a350a161ced01d68514ccda7484R415