Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F10907511
dnsseeds.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
619 B
Subscribers
None
dnsseeds.cpp
View Options
// Copyright (c) 2021 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include
<dnsseeds.h>
#include
<random.h>
#include
<util/system.h>
const
std
::
vector
<
std
::
string
>
GetRandomizedDNSSeeds
(
const
CChainParams
&
params
)
{
FastRandomContext
rng
;
std
::
vector
<
std
::
string
>
seeds
;
if
(
gArgs
.
IsArgSet
(
"-overridednsseed"
))
{
seeds
=
{
gArgs
.
GetArg
(
"-overridednsseed"
,
""
)};
}
else
{
seeds
=
params
.
vSeeds
;
}
Shuffle
(
seeds
.
begin
(),
seeds
.
end
(),
rng
);
return
seeds
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Nov 25, 08:00 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4512453
Default Alt Text
dnsseeds.cpp (619 B)
Attached To
rSTAGING Bitcoin ABC staging
Event Timeline
Log In to Comment