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

Method format_output

src/Core/WalletStateBasic.cpp:189–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189std::string WalletStateBasic::format_output(const api::Output &v) const {
190 std::stringstream str;
191 str << " he=" << v.height << " gi=" << v.global_index << " am=" << m_currency.format_amount(v.amount)
192 << " si=" << v.stack_index << " ki=" << v.key_image << " addr=" << v.address
193 << (v.unlock_block_or_timestamp == 0 ? "" : " unl=" + common::to_string(v.unlock_block_or_timestamp));
194 return str.str();
195}
196
197api::BlockHeader WalletStateBasic::fill_genesis(Hash genesis_bid, const BlockTemplate &g) {
198 api::BlockHeader result;

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.50
format_amountMethod · 0.45

Tested by

no test coverage detected