This commit is contained in:
Hyungsuk Kang 2018-06-21 23:37:15 +09:00 committed by GitHub
parent fee9bfd3af
commit 0543d50f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ type tx struct {
Transaction []byte
}
type verzion struct {
type version struct {
Version int
BestHeight int
AddrFrom string
@ -162,7 +162,7 @@ func sendTx(addr string, tnx *Transaction) {
func sendVersion(addr string, bc *Blockchain) {
bestHeight := bc.GetBestHeight()
payload := gobEncode(verzion{nodeVersion, bestHeight, nodeAddress})
payload := gobEncode(version{nodeVersion, bestHeight, nodeAddress})
request := append(commandToBytes("version"), payload...)