diff options
| author | Wladimir J. van der Laan <[email protected]> | 2020-06-24 15:48:26 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2020-06-24 18:41:45 +0200 |
| commit | bd93e32292c96b671e71223032ff8f660ce27c5d (patch) | |
| tree | 0aa7480acb3fa0162f49ab989bd40a8274acffe0 /src/rpc/mining.cpp | |
| parent | Merge #19357: doc: add release note for bitcoin-cli -generate (diff) | |
| download | discoin-bd93e32292c96b671e71223032ff8f660ce27c5d.tar.xz discoin-bd93e32292c96b671e71223032ff8f660ce27c5d.zip | |
refactor: Replace HexStr(o.begin(), o.end()) with HexStr(o)
HexStr can be called with anything that bas `begin()` and `end()` functions,
so clean up the redundant calls.
Diffstat (limited to 'src/rpc/mining.cpp')
| -rw-r--r-- | src/rpc/mining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index e8e0ab317..fee6a893e 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -873,7 +873,7 @@ static UniValue getblocktemplate(const JSONRPCRequest& request) result.pushKV("height", (int64_t)(pindexPrev->nHeight+1)); if (!pblocktemplate->vchCoinbaseCommitment.empty()) { - result.pushKV("default_witness_commitment", HexStr(pblocktemplate->vchCoinbaseCommitment.begin(), pblocktemplate->vchCoinbaseCommitment.end())); + result.pushKV("default_witness_commitment", HexStr(pblocktemplate->vchCoinbaseCommitment)); } return result; |