Skip to content

Commit

Permalink
Fix max_element_count for signature inputs (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnerd committed Jun 21, 2024
1 parent 01de34a commit c2ca85e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rpc/daemon_zmq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,17 @@ namespace rct
using rf_min_size = wire::min_element_sizeof<key64, key64, key64, key>;
using bf_max = wire::max_element_count<BULLETPROOF_MAX_OUTPUTS>;
using bf_plus_max = wire::max_element_count<BULLETPROOF_PLUS_MAX_OUTPUTS>;
using mlsags_max = wire::max_element_count<256>;
using clsags_max = wire::max_element_count<256>;
using pseudo_outs_max = wire::max_element_count<256>;
using mlsags_max = max_inputs_per_tx;
using clsags_max = max_inputs_per_tx;
using pseudo_outs_min_size = wire::min_element_sizeof<key>;

wire::object(source,
wire::field("range_proofs", wire::array<rf_min_size>(std::ref(self.prunable.rangeSigs))),
wire::field("bulletproofs", wire::array<bf_max>(std::ref(self.prunable.bulletproofs))),
wire::field("bulletproofs_plus", wire::array<bf_plus_max>(std::ref(self.prunable.bulletproofs_plus))),
wire::field("mlsags", wire::array<mlsags_max>(std::ref(self.prunable.MGs))),
wire::field("clsags", wire::array<clsags_max>(std::ref(self.prunable.CLSAGs))),
wire::field("pseudo_outs", wire::array<pseudo_outs_max>(std::ref(self.pseudo_outs)))
wire::field("pseudo_outs", wire::array<pseudo_outs_min_size>(std::ref(self.pseudo_outs)))
);

const bool pruned =
Expand Down

0 comments on commit c2ca85e

Please sign in to comment.