diff --git a/Model/main.py b/Model/main.py index ac567cc..4af219e 100644 --- a/Model/main.py +++ b/Model/main.py @@ -77,7 +77,7 @@ # with_fb_coins_dist=True, with_cum_op_cost=True, with_divergence=True, - # with_overpayments=True, + with_overpayments=True, ) start_block = 350000 diff --git a/Model/simulation.py b/Model/simulation.py index d7d9090..9a512f6 100644 --- a/Model/simulation.py +++ b/Model/simulation.py @@ -320,7 +320,8 @@ def cancel(self, block_height): # Compute overpayments if self.with_overpayments: feerate = self.wt.next_block_feerate(block_height) - self.overpayments.append([block_height, self.cancel_fee - feerate]) + needed_fee = self.wt.cancel_tx_fee(feerate, len(cancel_inputs)) + self.overpayments.append([block_height, self.cancel_fee - needed_fee]) def catastrophe_sequence(self, block_height): if len(self.wt.list_available_vaults()) == 0: