CatapultServer  v0.5.0.1 (Elephant)
NemesisExecutionHasher.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/types.h"
23 #include <string>
24 
25 namespace catapult {
26  namespace config { class CatapultConfiguration; }
27  namespace model { struct BlockElement; }
28 }
29 
30 namespace catapult { namespace tools { namespace nemgen {
31 
35  None,
36 
38  Purge
39  };
40 
45 
48 
50  std::string Summary;
51  };
52 
56  const model::BlockElement& blockElement,
57  const config::CatapultConfiguration& config,
58  CacheDatabaseCleanupMode databaseCleanupMode);
59 }}}
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
catapult::config::CatapultConfiguration::BlockChain
const model::BlockChainConfiguration BlockChain
Block chain configuration.
Definition: CatapultConfiguration.h:48
colorPrint.warning
def warning(*args)
Definition: colorPrint.py:10
catapult::tools::nemgen::CacheDatabaseCleanupMode
CacheDatabaseCleanupMode
Possible cache database cleanup modes.
Definition: NemesisExecutionHasher.h:33
catapult::model::BlockChainConfiguration::ShouldEnableVerifiableState
bool ShouldEnableVerifiableState
true if block chain should calculate state hashes so that state is fully verifiable at each block.
Definition: BlockChainConfiguration.h:39
catapult::model::BlockElement::Block
const model::Block & Block
Block entity.
Definition: Elements.h:63
catapult::config::NodeConfiguration::ShouldUseCacheDatabaseStorage
bool ShouldUseCacheDatabaseStorage
true if cache data should be saved in a database.
Definition: NodeConfiguration.h:48
catapult::config::CatapultConfiguration::Node
const NodeConfiguration Node
Node configuration.
Definition: CatapultConfiguration.h:51
catapult::model::BlockHeader::BlockTransactionsHash
Hash256 BlockTransactionsHash
Aggregate hash of a block's transactions.
Definition: Block.h:56
catapult::config::UserConfiguration::DataDirectory
std::string DataDirectory
Data directory.
Definition: UserConfiguration.h:35
catapult::tools::nemgen::NemesisExecutionHashesDescriptor::StateHash
Hash256 StateHash
State hash.
Definition: NemesisExecutionHasher.h:47
catapult::model::BlockElement::GenerationHash
catapult::GenerationHash GenerationHash
Generation hash of the block.
Definition: Elements.h:69
Elements.h
catapult::tools::nemgen::CacheDatabaseCleanupMode::Purge
Purge after execution.
catapult::tools::nemgen::CacheDatabaseCleanupMode::None
Perform no cleanup.
HexFormatter.h
catapult::config::CatapultConfiguration
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
catapult::tools::nemgen::CalculateAndLogNemesisExecutionHashes
NemesisExecutionHashesDescriptor CalculateAndLogNemesisExecutionHashes(const model::BlockElement &blockElement, const config::CatapultConfiguration &config, CacheDatabaseCleanupMode databaseCleanupMode)
Definition: NemesisExecutionHasher.cpp:60
catapult::model::BlockHeader::Height
catapult::Height Height
Height of a block.
Definition: Block.h:41
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
CATAPULT_THROW_INVALID_ARGUMENT_1
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
CatapultConfiguration.h
catapult::tools::nemgen::NemesisExecutionHashesDescriptor::Summary
std::string Summary
Textual summary including sub cache hashes.
Definition: NemesisExecutionHasher.h:50
NemesisBlockHashesCalculator.h
catapult::model::BlockElement
Processing element for a block composed of a block and metadata.
Definition: Elements.h:55
types.h
catapult::config::CatapultConfiguration::User
const UserConfiguration User
User configuration.
Definition: CatapultConfiguration.h:57
catapult
Definition: AddressExtractionExtension.cpp:28
NemesisExecutionHasher.h
catapult::utils::ByteArray< Hash256_Size, Hash256_tag >
m_directoryPath
std::string m_directoryPath
Definition: NemesisExecutionHasher.cpp:44
catapult::tools::nemgen::NemesisExecutionHashesDescriptor
Nemesis block execution dependent hashes information.
Definition: NemesisExecutionHasher.h:42
catapult::tools::nemgen::CalculateNemesisBlockExecutionHashes
BlockExecutionHashesInfo CalculateNemesisBlockExecutionHashes(const model::BlockElement &blockElement, const config::CatapultConfiguration &config)
Calculates the block execution dependent hashes after executing nemesis blockElement for network conf...
Definition: NemesisBlockHashesCalculator.cpp:30
catapult::tools::nemgen::NemesisExecutionHashesDescriptor::ReceiptsHash
Hash256 ReceiptsHash
Receipts hash.
Definition: NemesisExecutionHasher.h:44