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

Method PoolTransaction

src/Core/BlockChainState.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44} // namespace seria
45
46BlockChainState::PoolTransaction::PoolTransaction(const Transaction &tx, const BinaryArray &binary_tx, Amount fee,
47 Timestamp timestamp, const Hash &newest_referenced_block)
48 : tx(tx)
49 , binary_tx(binary_tx)
50 , amount(get_tx_sum_outputs(tx))
51 , fee(fee)
52 , timestamp(timestamp)
53 , newest_referenced_block(newest_referenced_block) {}
54
55void BlockChainState::DeltaState::store_keyimage(const KeyImage &key_image, Height height) {
56 invariant(m_keyimages.insert(std::make_pair(key_image, height)).second, common::pod_to_hex(key_image));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected