mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
Fix race testing (cont;) Bump version to 0.19.0
This commit is contained in:
parent
d24e4cb821
commit
02531ca5a3
@ -49,6 +49,12 @@ func (b *Block) AddEvidence(evidence []Evidence) {
|
|||||||
// ValidateBasic performs basic validation that doesn't involve state data.
|
// ValidateBasic performs basic validation that doesn't involve state data.
|
||||||
// It checks the internal consistency of the block.
|
// It checks the internal consistency of the block.
|
||||||
func (b *Block) ValidateBasic() error {
|
func (b *Block) ValidateBasic() error {
|
||||||
|
if b == nil {
|
||||||
|
return errors.New("Nil blocks are invalid")
|
||||||
|
}
|
||||||
|
b.mtx.Lock()
|
||||||
|
defer b.mtx.Unlock()
|
||||||
|
|
||||||
newTxs := int64(len(b.Data.Txs))
|
newTxs := int64(len(b.Data.Txs))
|
||||||
if b.NumTxs != newTxs {
|
if b.NumTxs != newTxs {
|
||||||
return fmt.Errorf("Wrong Block.Header.NumTxs. Expected %v, got %v", newTxs, b.NumTxs)
|
return fmt.Errorf("Wrong Block.Header.NumTxs. Expected %v, got %v", newTxs, b.NumTxs)
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package version
|
package version
|
||||||
|
|
||||||
const Maj = "0"
|
const Maj = "0"
|
||||||
const Min = "16"
|
const Min = "19"
|
||||||
const Fix = "0"
|
const Fix = "0"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// Version is the current version of Tendermint
|
// Version is the current version of Tendermint
|
||||||
// Must be a string because scripts like dist.sh read this file.
|
// Must be a string because scripts like dist.sh read this file.
|
||||||
Version = "0.16.0"
|
Version = "0.19.0"
|
||||||
|
|
||||||
// GitCommit is the current HEAD set using ldflags.
|
// GitCommit is the current HEAD set using ldflags.
|
||||||
GitCommit string
|
GitCommit string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user