bench: Move generated data to a dedicated translation unit

This commit is contained in:
João Barbosa
2019-07-01 21:42:22 +01:00
parent 3077f11dad
commit 3d60a03a7c
5 changed files with 44 additions and 15 deletions

14
src/bench/data.cpp Normal file
View File

@@ -0,0 +1,14 @@
// Copyright (c) 2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/data.h>
namespace benchmark {
namespace data {
#include <bench/data/block413567.raw.h>
const std::vector<uint8_t> block413567{block413567_raw, block413567_raw + sizeof(block413567_raw) / sizeof(block413567_raw[0])};
} // namespace data
} // namespace benchmark