@@ -56,7 +56,7 @@ public void onBlock(BlockSummary blockSummary) {
56
56
onBlock (blockSummary .getBlock ());
57
57
}
58
58
59
- private void onBlock (Block block ) {
59
+ protected void onBlock (Block block ) {
60
60
if (onTransactions (block .getTransactionsList ())) {
61
61
++idx ;
62
62
if (idx >= getBlocksRecount ()) {
@@ -126,7 +126,7 @@ public Long getRecommendedGasPrice() {
126
126
* data for blocks before last {@link #getMinBlocks()} is used when available
127
127
* @return minimum number of blocks
128
128
*/
129
- public static int getMinBlocks () {
129
+ public int getMinBlocks () {
130
130
return MIN_BLOCKS ;
131
131
}
132
132
@@ -136,7 +136,7 @@ public static int getMinBlocks() {
136
136
* Used when not enough data gathered
137
137
* @return default transaction price
138
138
*/
139
- public static Long getDefaultPrice () {
139
+ public Long getDefaultPrice () {
140
140
return DEFAULT_PRICE ;
141
141
}
142
142
@@ -146,7 +146,7 @@ public static Long getDefaultPrice() {
146
146
* Recount every N blocks
147
147
* @return number of blocks
148
148
*/
149
- public static int getBlocksRecount () {
149
+ public int getBlocksRecount () {
150
150
return BLOCKS_RECOUNT ;
151
151
}
152
152
@@ -157,7 +157,7 @@ public static int getBlocksRecount() {
157
157
* to override default value on recount
158
158
* @return minimum number of transactions for calculation
159
159
*/
160
- public static int getMinTransactions () {
160
+ public int getMinTransactions () {
161
161
return MIN_TRANSACTIONS ;
162
162
}
163
163
@@ -168,7 +168,7 @@ public static int getMinTransactions() {
168
168
* So 4 means lowest 25%, 8 lowest 12.5% etc
169
169
* @return percentile share
170
170
*/
171
- public static int getPercentileShare () {
171
+ public int getPercentileShare () {
172
172
return PERCENTILE_SHARE ;
173
173
}
174
174
}
0 commit comments