Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsuo committed Dec 19, 2014
1 parent 7eaf315 commit d497a69
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/messages/version.jl
Expand Up @@ -5,7 +5,7 @@ type NetworkAddress
port::Uint16

# Assume addresses come in the form IP:Port
function NetworkAddress(address::String; services = SERVICES_NODE_NETWORK
function NetworkAddress(address::String; services = SERVICES_NODE_NETWORK)

# TODO: more rigorous IP address checking
pieces = split(address, ":")
Expand Down Expand Up @@ -61,14 +61,14 @@ type Version
addr_recv = NetworkAddress(addr_recv, services = services)
addr_from = NetworkAddress(addr_from, services = services)

new(version = uint32(version),
services = uint64(services),
timestamp = uint64(timestamp),
addr_recv = addr_recv,
addr_from = addr_from,
nonce = nonce,
user_agent = user_agent,
start_height = uint32(start_height),
relay = relay)
new(uint32(version),
uint64(services),
uint64(timestamp),
addr_recv,
addr_from,
nonce,
user_agent,
uint32(start_height),
relay)
end
end

0 comments on commit d497a69

Please sign in to comment.