remove per_kb_fee

This commit is contained in:
j-berman
2022-05-28 18:56:26 -07:00
committed by Lee *!* Clagett
parent 271f0dcb64
commit 04a54ea136
3 changed files with 6 additions and 6 deletions

View File

@@ -294,7 +294,7 @@ namespace lws
return expand_outputs{src, self.user_key};
};
wire::object(dest,
wire::field(self.use_per_byte_fee ? "per_byte_fee" : "per_kb_fee", self.base_fee),
WIRE_FIELD_COPY(per_byte_fee),
WIRE_FIELD_COPY(fee_mask),
WIRE_FIELD_COPY(amount),
wire::field("outputs", wire::as_array(std::cref(self.outputs), expand))

View File

@@ -155,12 +155,11 @@ namespace rpc
struct get_unspent_outs_response
{
get_unspent_outs_response() = delete;
std::uint64_t base_fee; // either per_byte_fee or per_kb_fee
std::uint64_t per_byte_fee;
std::uint64_t fee_mask;
safe_uint64 amount;
std::vector<std::pair<db::output, std::vector<crypto::key_image>>> outputs;
crypto::secret_key user_key;
bool use_per_byte_fee;
};
void write_bytes(wire::json_writer&, const get_unspent_outs_response&);