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

Method get_maximum_tx_input_count_jade

src/Core/CryptoNoteTools.cpp:142–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 return tx_fixed_size_jade + outputs_size + inputs_size;
141}
142size_t cn::get_maximum_tx_input_count_jade(size_t tx_size, size_t output_count, size_t anonymity) {
143 const size_t outputs_size = output_count * tx_output_size_jade;
144 if (tx_size < tx_fixed_size_jade + outputs_size)
145 return 0;
146 return (tx_size - tx_fixed_size_jade - outputs_size) / get_maximum_tx_input_size_jade(anonymity);
147}
148
149Amount cn::get_tx_sum_outputs(const TransactionPrefix &tx) {
150 uint64_t amount_out = 0;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected