diff options
author | Yusuf Sahin HAMZA <yusufsahinhamza@gmail.com> | 2022-12-10 19:30:28 +0300 |
---|---|---|
committer | Yusuf Sahin HAMZA <yusufsahinhamza@gmail.com> | 2022-12-10 19:30:28 +0300 |
commit | 3cc989da5c750e740705131bed05bbf93bfdf169 (patch) | |
tree | ff370bfa871b317ae86c30285569dad9eb6c17bf /src/randomenv.h | |
parent | 1ea02791f3d81c7716d9ea455971203f74d7a107 (diff) | |
download | bitcoin-3cc989da5c750e740705131bed05bbf93bfdf169.tar.xz |
Fix checking bad dns seeds without casting
Since seed lines comes with 'str' type, comparing it directly with 0
('int' type) in the if statement was not working at all. This is fixed
by casting 'int' type to the values in the 'good' column of seeds text file.
Lines that starts with comment in the seeds text file are now ignored.
If statement for checking bad seeds are moved to the top of the 'parseline'
function as if seed is bad, there is no point of going forward from there.
Diffstat (limited to 'src/randomenv.h')
0 files changed, 0 insertions, 0 deletions