App -> App()

This commit is contained in:
Matthew Wampler-Doty
2015-03-18 23:27:26 -07:00
committed by Jae Kwon
parent e59de906f7
commit f03547007a
13 changed files with 97 additions and 85 deletions
+1 -1
View File
@@ -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 {