mirror of
https://github.com/monero-project/monero.git
synced 2025-12-21 12:25:22 -05:00
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:
parent
d66db18c06
commit
9447e7276d
4 changed files with 104 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue