Remove server-side masking

This commit is contained in:
j-berman 2022-02-22 02:03:14 -05:00
parent 1e32656152
commit e007e6f505

View file

@ -541,11 +541,8 @@ namespace lws
return {lws::error::bad_daemon_response};
const bool use_per_byte_fee = resp->size_scale == 1;
const std::uint64_t base_fee = resp->estimated_base_fee;
const std::uint64_t base_fee_masked =
((base_fee + (resp->fee_mask - 1)) / resp->fee_mask) * resp->fee_mask;
return response{base_fee_masked, resp->fee_mask, rpc::safe_uint64(received), std::move(unspent), std::move(req.creds.key), use_per_byte_fee};
return response{resp->estimated_base_fee, resp->fee_mask, rpc::safe_uint64(received), std::move(unspent), std::move(req.creds.key), use_per_byte_fee};
}
};