mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-01-09 15:15:15 -08:00
Add support for dynamic fees over ZMQ (#166)
* Add support for dynamic fees over ZMQ * Fix build after upstream change * Fix unit tests
This commit is contained in:
committed by
Lee *!* Clagett
parent
b63000d21a
commit
e593fd5fb2
@@ -1110,6 +1110,7 @@ namespace lws
|
||||
rpc->fee_mask,
|
||||
rpc::safe_uint64(received),
|
||||
std::move(unspent),
|
||||
rpc->fees,
|
||||
std::move(req.creds.key)
|
||||
}
|
||||
);
|
||||
|
||||
@@ -350,7 +350,8 @@ namespace lws
|
||||
WIRE_FIELD_COPY(per_byte_fee),
|
||||
WIRE_FIELD_COPY(fee_mask),
|
||||
WIRE_FIELD_COPY(amount),
|
||||
wire::optional_field("outputs", wire::array(boost::adaptors::transform(self.outputs, expand)))
|
||||
wire::optional_field("outputs", wire::array(boost::adaptors::transform(self.outputs, expand))),
|
||||
WIRE_FIELD(fees)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -210,6 +210,7 @@ namespace rpc
|
||||
std::uint64_t fee_mask;
|
||||
safe_uint64 amount;
|
||||
std::vector<std::pair<db::output, std::vector<crypto::key_image>>> outputs;
|
||||
std::vector<std::uint64_t> fees;
|
||||
crypto::secret_key user_key;
|
||||
};
|
||||
void write_bytes(wire::json_writer&, const get_unspent_outs_response&);
|
||||
|
||||
Reference in New Issue
Block a user