squeaknode/squeaknode/network/util.py
Jonathan Zernik 1101dd7480
Simplify getting address from peer class (#1060)
* Simplify getting address from peer class

* Improved getting caddress field in version messages

* Simplified getting caddress even more

* Include local address and remote address as params for peer constructor

* Remove old comments from peer class
2021-08-24 20:56:51 -07:00

5 lines
58 B
Python

import time
def time_now():
return int(time.time())