@@ -181,15 +181,15 @@ class TransactionPool {
181181 return appStakesTotal > 0 ? appsBandwidthBudgetPerBlock * appStake / appStakesTotal : 0 ;
182182 }
183183
184- getBandwidthBudgets ( blockNumber , stateVersion ) {
184+ getBandwidthBudgets ( stateVersion ) {
185185 const bandwidthBudgetPerBlock = this . node . getBlockchainParam (
186- 'resource/bandwidth_budget_per_block' , blockNumber , stateVersion ) ;
186+ 'resource/bandwidth_budget_per_block' , null , stateVersion ) ;
187187 const serviceBandwidthBudgetRatio = this . node . getBlockchainParam (
188- 'resource/service_bandwidth_budget_ratio' , blockNumber , stateVersion ) ;
188+ 'resource/service_bandwidth_budget_ratio' , null , stateVersion ) ;
189189 const appsBandwidthBudgetRatio = this . node . getBlockchainParam (
190- 'resource/apps_bandwidth_budget_ratio' , blockNumber , stateVersion ) ;
190+ 'resource/apps_bandwidth_budget_ratio' , null , stateVersion ) ;
191191 const freeBandwidthBudgetRatio = this . node . getBlockchainParam (
192- 'resource/free_bandwidth_budget_ratio' , blockNumber , stateVersion ) ;
192+ 'resource/free_bandwidth_budget_ratio' , null , stateVersion ) ;
193193 const serviceBandwidthBudgetPerBlock = bandwidthBudgetPerBlock * serviceBandwidthBudgetRatio ;
194194 const appsBandwidthBudgetPerBlock = bandwidthBudgetPerBlock * appsBandwidthBudgetRatio ;
195195 const freeBandwidthBudgetPerBlock = bandwidthBudgetPerBlock * freeBandwidthBudgetRatio ;
@@ -218,7 +218,7 @@ class TransactionPool {
218218 serviceBandwidthBudgetPerBlock,
219219 appsBandwidthBudgetPerBlock,
220220 freeBandwidthBudgetPerBlock,
221- } = this . getBandwidthBudgets ( db . blockNumberSnapshot , db . stateVersion ) ;
221+ } = this . getBandwidthBudgets ( db . stateVersion ) ;
222222 for ( const tx of txList ) {
223223 const nonce = tx . tx_body . nonce ;
224224 if ( addrToDiscardedNoncedTx [ tx . address ] && nonce >= 0 ) {
0 commit comments