Custom asset chain client names (#1338)

* Allow setting client name via cli

* Add util.h for GetArg
This commit is contained in:
Duke Leto
2019-03-20 13:03:41 -07:00
committed by jl777
parent 94adc14066
commit d61784c949
2 changed files with 3 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
#include "clientversion.h"
#include "tinyformat.h"
#include "util.h"
#include <string>
@@ -34,7 +35,7 @@
* for both bitcoind and bitcoin-core, to make it harder for attackers to
* target servers or GUI users specifically.
*/
const std::string CLIENT_NAME("MagicBean");
const std::string CLIENT_NAME = GetArg("-ac_clientname", "MagicBean");
/**
* Client version number