From fa4017e7a0899959b2ac84bcbc3f34dfb17b5fce Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 17 Jun 2021 14:50:54 +0200 Subject: [PATCH] refactor: Pass grind args vector as const reference --- src/bitcoin-util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitcoin-util.cpp b/src/bitcoin-util.cpp index d26ffd28556..f534aecc199 100644 --- a/src/bitcoin-util.cpp +++ b/src/bitcoin-util.cpp @@ -105,7 +105,7 @@ static void grind_task(uint32_t nBits, CBlockHeader& header_orig, uint32_t offse } } -static int Grind(std::vector args, std::string& strPrint) +static int Grind(const std::vector& args, std::string& strPrint) { if (args.size() != 1) { strPrint = "Must specify block header to grind";