MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Generate

Method Generate

src/netbase.cpp:780–785  ·  view source on GitHub ↗

Return the next unique proxy credentials. */

Source from the content-addressed store, hash-verified

778
779 /** Return the next unique proxy credentials. */
780 ProxyCredentials Generate() {
781 ProxyCredentials auth;
782 auth.username = auth.password = strprintf("%s%i", m_prefix, m_counter);
783 ++m_counter;
784 return auth;
785 }
786
787 /** Size of session prefix in bytes. */
788 static constexpr size_t PREFIX_BYTE_LENGTH = 8;

Callers 1

ConnectThroughProxyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected