Browse Source

Fixed account.PubkeyEd25519 String() bug

pull/39/head
Jae Kwon 10 years ago
parent
commit
2b39e56e75
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      account/pubkey.go
  2. +1
    -1
      config/config.go

+ 1
- 1
account/pubkey.go View File

@ -82,5 +82,5 @@ func (pubKey PubKeyEd25519) VerifyBytes(msg []byte, sig_ Signature) bool {
} }
func (pubKey PubKeyEd25519) String() string { func (pubKey PubKeyEd25519) String() string {
return Fmt("PubKeyEd25519{%X}", pubKey)
return Fmt("PubKeyEd25519{%X}", []byte(pubKey))
} }

+ 1
- 1
config/config.go View File

@ -58,7 +58,7 @@ func initDefaults() {
App.SetDefault("RPC.HTTP.ListenAddr", "0.0.0.0:8081") App.SetDefault("RPC.HTTP.ListenAddr", "0.0.0.0:8081")
App.SetDefault("GenesisFile", rootDir+"/genesis.json") App.SetDefault("GenesisFile", rootDir+"/genesis.json")
App.SetDefault("AddrbookFile", rootDir+"/addrbook.json")
App.SetDefault("AddrBookFile", rootDir+"/addrbook.json")
App.SetDefault("PrivValidatorfile", rootDir+"/priv_validator.json") App.SetDefault("PrivValidatorfile", rootDir+"/priv_validator.json")
} }


Loading…
Cancel
Save