diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-10 10:45:49 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-11 12:08:36 +0000 |
| commit | 9447e7276dbcaf37e5fe81738db3d62b5a443839 (patch) | |
| tree | 84276397096a09bb03a8aace1a5c6a7dffd19305 /src/cryptonote_basic/cryptonote_format_utils.h | |
| parent | d66db18c06aca961ffee68c87a29747d82123cdc (diff) | |
| download | monzero-core-9447e7276dbcaf37e5fe81738db3d62b5a443839.tar.gz monzero-core-9447e7276dbcaf37e5fe81738db3d62b5a443839.tar.xz monzero-core-9447e7276dbcaf37e5fe81738db3d62b5a443839.zip | |
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
Diffstat (limited to 'src/cryptonote_basic/cryptonote_format_utils.h')
| -rw-r--r-- | src/cryptonote_basic/cryptonote_format_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
