Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 2,073 Lines • ▼ Show 20 Lines | for (const auto &tx : block.vtx) { | ||||
// Don't count coinbase's fake input | // Don't count coinbase's fake input | ||||
inputs += tx->vin.size(); | inputs += tx->vin.size(); | ||||
// Don't count coinbase reward | // Don't count coinbase reward | ||||
total_out += tx_total_out; | total_out += tx_total_out; | ||||
int64_t tx_size = 0; | int64_t tx_size = 0; | ||||
if (do_calculate_size) { | if (do_calculate_size) { | ||||
tx_size = tx->GetTotalSize(); | tx_size = tx->GetTotalSize(); | ||||
if (do_mediantxsize) { | if (do_mediantxsize) { | ||||
txsize_array.push_back(tx_size); | txsize_array.push_back(tx_size); | ||||
} | } | ||||
maxtxsize = std::max(maxtxsize, tx_size); | maxtxsize = std::max(maxtxsize, tx_size); | ||||
mintxsize = std::min(mintxsize, tx_size); | mintxsize = std::min(mintxsize, tx_size); | ||||
total_size += tx_size; | total_size += tx_size; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 444 Lines • Show Last 20 Lines |