mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
App -> App()
This commit is contained in:
committed by
Jae Kwon
parent
e59de906f7
commit
f03547007a
+1
-1
@@ -24,7 +24,7 @@ type Block struct {
|
||||
// Basic validation that doesn't involve state data.
|
||||
func (b *Block) ValidateBasic(lastBlockHeight uint, lastBlockHash []byte,
|
||||
lastBlockParts PartSetHeader, lastBlockTime time.Time) error {
|
||||
if b.Network != config.App.GetString("Network") {
|
||||
if b.Network != config.App().GetString("Network") {
|
||||
return errors.New("Wrong Block.Header.Network")
|
||||
}
|
||||
if b.Height != lastBlockHeight+1 {
|
||||
|
||||
Reference in New Issue
Block a user