PeerManager: Save start_height on peer.
This commit is contained in:
parent
ef79d74226
commit
dd6d1a3179
|
@ -112,6 +112,8 @@ PeerManager.prototype.addConnection = function(socketConn, peer) {
|
||||||
|
|
||||||
PeerManager.prototype.handleVersion = function(e) {
|
PeerManager.prototype.handleVersion = function(e) {
|
||||||
e.peer.version = e.message.version;
|
e.peer.version = e.message.version;
|
||||||
|
e.peer.start_height = e.message.start_height;
|
||||||
|
|
||||||
if (!e.conn.inbound) {
|
if (!e.conn.inbound) {
|
||||||
// TODO: Advertise our address (if listening)
|
// TODO: Advertise our address (if listening)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue