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
This commit is contained in:
moneromooo-monero 2019-10-10 10:45:49 +00:00
parent d66db18c06
commit 9447e7276d
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 104 additions and 11 deletions

View file

@ -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);