mirror of
https://github.com/monero-project/monero.git
synced 2025-08-02 07:46:10 -04: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
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue