Browse Source

bench: Use CDataStream.data()

0.14
Wladimir J. van der Laan 8 years ago
parent
commit
e2300ff65e
  1. 2
      src/bench/verify_script.cpp

2
src/bench/verify_script.cpp

@ -94,7 +94,7 @@ static void VerifyScriptBench(benchmark::State& state) @@ -94,7 +94,7 @@ static void VerifyScriptBench(benchmark::State& state)
txCredit.vout[0].scriptPubKey.data(),
txCredit.vout[0].scriptPubKey.size(),
txCredit.vout[0].nValue,
(const unsigned char*)&stream[0], stream.size(), 0, flags, nullptr);
(const unsigned char*)stream.data(), stream.size(), 0, flags, nullptr);
assert(csuccess == 1);
#endif
}

Loading…
Cancel
Save