From 05d38dd4767233a4a14687180aaa897912aff11f Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Thu, 31 Aug 2023 00:02:53 +0200 Subject: [PATCH] feat(rpc): add documentation for `calculate_reward_percentiles` (#4413) --- crates/rpc/rpc/src/eth/api/fees.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/rpc/rpc/src/eth/api/fees.rs b/crates/rpc/rpc/src/eth/api/fees.rs index 5d8cbc4d1f..08822b5840 100644 --- a/crates/rpc/rpc/src/eth/api/fees.rs +++ b/crates/rpc/rpc/src/eth/api/fees.rs @@ -132,7 +132,11 @@ where }) } - // todo: docs + /// Calculates reward percentiles for transactions in a block header. + /// Given a list of percentiles and a sealed block header, this function computes + /// the corresponding rewards for the transactions at each percentile. + /// + /// The results are returned as a vector of U256 values. async fn calculate_reward_percentiles( &self, percentiles: &[f64],