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/ringct/rctTypes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ringct') diff --git a/src/ringct/rctTypes.h b/src/ringct/rctTypes.h index f8729b872..bf4b7b4aa 100644 --- a/src/ringct/rctTypes.h +++ b/src/ringct/rctTypes.h @@ -321,6 +321,7 @@ namespace rct { std::vector 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 class Archive> bool serialize_rctsig_prunable(Archive &ar, uint8_t type, size_t inputs, size_t outputs, size_t mixin) { -- cgit v1.2.3