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

@ -321,6 +321,7 @@ namespace rct {
std::vector<mgSig> MGs; // simple rct has N, full has 1
keyV pseudoOuts; //C - for simple rct
// when changing this function, update cryptonote::get_pruned_transaction_weight
template<bool W, template <bool> class Archive>
bool serialize_rctsig_prunable(Archive<W> &ar, uint8_t type, size_t inputs, size_t outputs, size_t mixin)
{