diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-11-14 21:29:49 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-11-14 21:29:49 +0200 |
| commit | 5de492be40e9d55a9b432b562c72e933d0df0efb (patch) | |
| tree | 46d23b2a38a41bbc6f1786f6c97413c1de3aefb5 /src/blockchain_utilities/bootstrap_file.cpp | |
| parent | f48aeab5c4d545ec7f5d0bf103631726cdda4a0d (diff) | |
| parent | 383ff4f68943c5d998fba8caa20aee481583f214 (diff) | |
| download | monzero-core-5de492be40e9d55a9b432b562c72e933d0df0efb.tar.gz monzero-core-5de492be40e9d55a9b432b562c72e933d0df0efb.tar.xz monzero-core-5de492be40e9d55a9b432b562c72e933d0df0efb.zip | |
Merge pull request #2629
383ff4f6 remove "using namespace std" from headers (moneromooo-monero)
Diffstat (limited to 'src/blockchain_utilities/bootstrap_file.cpp')
| -rw-r--r-- | src/blockchain_utilities/bootstrap_file.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blockchain_utilities/bootstrap_file.cpp b/src/blockchain_utilities/bootstrap_file.cpp index a004d3547..2c993460a 100644 --- a/src/blockchain_utilities/bootstrap_file.cpp +++ b/src/blockchain_utilities/bootstrap_file.cpp @@ -221,7 +221,7 @@ void BootstrapFile::write_block(block& block) // now add all regular transactions for (const auto& tx_id : block.tx_hashes) { - if (tx_id == null_hash) + if (tx_id == crypto::null_hash) { throw std::runtime_error("Aborting: tx == null_hash"); } @@ -433,7 +433,7 @@ uint64_t BootstrapFile::count_bytes(std::ifstream& import_file, uint64_t blocks, uint64_t BootstrapFile::count_blocks(const std::string& import_file_path) { - streampos dummy_pos; + std::streampos dummy_pos; uint64_t dummy_height = 0; return count_blocks(import_file_path, dummy_pos, dummy_height); } @@ -441,7 +441,7 @@ uint64_t BootstrapFile::count_blocks(const std::string& import_file_path) // If seek_height is non-zero on entry, return a stream position <= this height when finished. // And return the actual height corresponding to this position. Allows the caller to locate its // starting position without having to reread the entire file again. -uint64_t BootstrapFile::count_blocks(const std::string& import_file_path, streampos &start_pos, uint64_t& seek_height) +uint64_t BootstrapFile::count_blocks(const std::string& import_file_path, std::streampos &start_pos, uint64_t& seek_height) { boost::filesystem::path raw_file_path(import_file_path); boost::system::error_code ec; |
