HomePhabricator

Use pnode->nLastRecv as sync score directly
09a54a65c0d0Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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>

Details

Provenance
Huang Le <4tarhl@gmail.com>Authored on May 30 2014, 15:44
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING97ab93f50b6f: Merge pull request #4252
Branches
Unknown
Tags
Unknown

Event Timeline

Huang Le <4tarhl@gmail.com> committed rSTAGING09a54a65c0d0: Use pnode->nLastRecv as sync score directly (authored by Huang Le <4tarhl@gmail.com>).May 30 2014, 15:44