mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 20:21:47 +00:00
remove TimeIotaMs from ABCI consensus params (#3403)
Also - init substructures to avoid panic in pb2tm.ConsensusParams Before: if csp.Block is nil and we later try to access/write to it, we'll panic. After: if csp.Block is nil and we later try to access/write to it, there'll be no panic.
This commit is contained in:
@ -65,6 +65,8 @@ func TestABCIConsensusParams(t *testing.T) {
|
||||
cp := DefaultConsensusParams()
|
||||
abciCP := TM2PB.ConsensusParams(cp)
|
||||
cp2 := PB2TM.ConsensusParams(abciCP)
|
||||
// TimeIotaMs is not exposed to the application.
|
||||
cp2.Block.TimeIotaMs = cp.Block.TimeIotaMs
|
||||
|
||||
assert.Equal(t, *cp, cp2)
|
||||
}
|
||||
|
Reference in New Issue
Block a user