-
Notifications
You must be signed in to change notification settings - Fork 130
Remove EthTaskChainDownloader and supporting code #1373
Remove EthTaskChainDownloader and supporting code #1373
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few optional comments. Mostly on unit tests.
LGTM
} | ||
|
||
@Override | ||
public int hashCode() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional. Maybe we could test equals and hashCode. Although it is non blocking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Equals is only used by tests and hash code isn't used (but should exist to match equals just for good measure). I really only updated them to match our code style which is the generated code.
return String.format( | ||
"maxGetBlockHeaders=%s\tmaxGetBlockBodies=%s\tmaxGetReceipts=%s\tmaxGetReceipts=%s", | ||
maxGetBlockHeaders, maxGetBlockBodies, maxGetReceipts, maxGetNodeData); | ||
return MoreObjects.toStringHelper(this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional. Unit test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toString is always just for debugging purposes so the only time we should test it is when there's sensitive info that definitely shouldn't appear in a log (ie anything containing a password).
PR description
Remove the old EthTaskChainDownloader class and code that is only used by it (plus a few other bits of unused code detected by the static analysis).
We should merge #1372 and #1344 first.