Use pnode->nLastRecv as sync score directly 234/head
authorHuang Le <4tarhl@gmail.com>
Fri, 30 May 2014 15:44:44 +0000 (23:44 +0800)
committersvost <ya.nowa@yandex.ru>
Sun, 20 Sep 2015 06:25:29 +0000 (09:25 +0300)
commitc1153fd4f8717ba1ae62ec7f89c5d0d50718b37b
tree51375cac0918a46cb2434d4a34d06ee6123b5717
parentea46cd0a8d011c48371e9720e247dd3a2bbdc947
Use pnode->nLastRecv as sync score directly

NodeSyncScore() should find the node which we recv data most recently, so put a negative sign to pnode->nLastRecv is indeed wrong.

Also change the return value type to int64_t.

Signed-off-by: Huang Le <4tarhl@gmail.com>
src/net.cpp