diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-08-10 03:03:10 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-08-12 16:25:50 +0200 |
commit | 356988e200b1debaa80d210d502d2d085c72dc64 (patch) | |
tree | 1d44ec1ddd069ffeb785acb30c438a6a08ea2a0e /src/bench | |
parent | f0fce0675d56b2226a993253731690ca864066c8 (diff) |
util: make EncodeBase58Check consume Spans
Diffstat (limited to 'src/bench')
-rw-r--r-- | src/bench/base58.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bench/base58.cpp b/src/bench/base58.cpp index dee3ffeb6b..18cb5de196 100644 --- a/src/bench/base58.cpp +++ b/src/bench/base58.cpp @@ -34,10 +34,8 @@ static void Base58CheckEncode(benchmark::Bench& bench) 200, 24 } }; - std::vector<unsigned char> vch; - vch.assign(buff.begin(), buff.end()); bench.batch(buff.size()).unit("byte").run([&] { - EncodeBase58Check(vch); + EncodeBase58Check(buff); }); } |