@@ -55,11 +55,13 @@ pub trait BlockBuildingHelper: Send + Sync {
55
55
/// This is the maximum profit that can reach the final fee recipient (max bid!).
56
56
/// Maximum payout_tx_value value to pass to finalize_block.
57
57
/// The main reason to get an error is if profit is so low that we can't pay the payout tx (that would mean negative block value!).
58
+ #[ expect( clippy:: result_large_err) ]
58
59
fn true_block_value ( & self ) -> Result < U256 , BlockBuildingHelperError > ;
59
60
60
61
/// Eats the BlockBuildingHelper since once it's finished you should not use it anymore.
61
62
/// payout_tx_value: If Some, added at the end of the block from coinbase to the final fee recipient.
62
63
/// This only works if can_add_payout_tx.
64
+ #[ expect( clippy:: result_large_err) ]
63
65
fn finalize_block (
64
66
self : Box < Self > ,
65
67
local_ctx : & mut ThreadBlockBuildingContext ,
@@ -94,6 +96,7 @@ impl Clone for BiddableUnfinishedBlock {
94
96
}
95
97
96
98
impl BiddableUnfinishedBlock {
99
+ #[ expect( clippy:: result_large_err) ]
97
100
pub fn new ( block : Box < dyn BlockBuildingHelper > ) -> Result < Self , BlockBuildingHelperError > {
98
101
let true_block_value = block. true_block_value ( ) ?;
99
102
Ok ( Self {
@@ -185,7 +188,7 @@ impl BlockBuildingHelperFromProvider {
185
188
/// - Query fee_recipient_balance_start.
186
189
/// - pre_block_call.
187
190
/// - Estimate payout tx cost.
188
- #[ allow ( clippy:: too_many_arguments ) ]
191
+ #[ expect ( clippy:: result_large_err ) ]
189
192
pub fn new (
190
193
state_provider : Arc < dyn StateProvider > ,
191
194
building_ctx : BlockBuildingContext ,
@@ -272,6 +275,7 @@ impl BlockBuildingHelperFromProvider {
272
275
}
273
276
274
277
/// Inserts payout tx if necessary and updates built_block_trace.
278
+ #[ expect( clippy:: result_large_err) ]
275
279
fn finalize_block_execution (
276
280
& mut self ,
277
281
local_ctx : & mut ThreadBlockBuildingContext ,
0 commit comments