typo
This commit is contained in:
parent
fee9bfd3af
commit
0543d50f7a
|
@ -51,7 +51,7 @@ type tx struct {
|
||||||
Transaction []byte
|
Transaction []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type verzion struct {
|
type version struct {
|
||||||
Version int
|
Version int
|
||||||
BestHeight int
|
BestHeight int
|
||||||
AddrFrom string
|
AddrFrom string
|
||||||
|
@ -162,7 +162,7 @@ func sendTx(addr string, tnx *Transaction) {
|
||||||
|
|
||||||
func sendVersion(addr string, bc *Blockchain) {
|
func sendVersion(addr string, bc *Blockchain) {
|
||||||
bestHeight := bc.GetBestHeight()
|
bestHeight := bc.GetBestHeight()
|
||||||
payload := gobEncode(verzion{nodeVersion, bestHeight, nodeAddress})
|
payload := gobEncode(version{nodeVersion, bestHeight, nodeAddress})
|
||||||
|
|
||||||
request := append(commandToBytes("version"), payload...)
|
request := append(commandToBytes("version"), payload...)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue