MCPcopy Create free account
hub / github.com/bcndev/bytecoin / DeltaState

Method DeltaState

src/Core/BlockChainState.hpp:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 const IBlockChainState *m_parent_state; // const parent to prevent accidental parent modification
102 public:
103 explicit DeltaState(Height block_height, Timestamp block_timestamp, Timestamp block_median_timestamp,
104 const IBlockChainState *parent_state)
105 : m_block_height(block_height)
106 , m_block_timestamp(block_timestamp)
107 , m_block_median_timestamp(block_median_timestamp)
108 , m_parent_state(parent_state) {}
109 Height get_block_height() const { return m_block_height; }
110 Height get_block_timestamp() const { return m_block_timestamp; }
111 Height get_block_median_timestamp() const { return m_block_median_timestamp; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected