From 9447e7276dbcaf37e5fe81738db3d62b5a443839 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 10 Oct 2019 10:45:49 +0000 Subject: cryptonote: add function to get weight from a pruned tx The weight of the prunable data is deterministic from the unpruned data, so it can be determined from a pruned tx --- src/cryptonote_basic/cryptonote_format_utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cryptonote_basic/cryptonote_format_utils.h') diff --git a/src/cryptonote_basic/cryptonote_format_utils.h b/src/cryptonote_basic/cryptonote_format_utils.h index 284494299..29e4def64 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.h +++ b/src/cryptonote_basic/cryptonote_format_utils.h @@ -127,6 +127,7 @@ namespace cryptonote bool parse_amount(uint64_t& amount, const std::string& str_amount); uint64_t get_transaction_weight(const transaction &tx); uint64_t get_transaction_weight(const transaction &tx, size_t blob_size); + uint64_t get_pruned_transaction_weight(const transaction &tx); bool check_money_overflow(const transaction& tx); bool check_outs_overflow(const transaction& tx); -- cgit v1.2.3