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/ringct | |
parent | Merge pull request #5978 (diff) | |
download | monero-9447e7276dbcaf37e5fe81738db3d62b5a443839.tar.xz |
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/ringct')
-rw-r--r-- | src/ringct/rctTypes.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<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) { |