Modify gas price statistics (#2947)
* gas price distribution + median + tests * put histogram in util * use the util histogram * remove the default gas price implementation * histogram rpc * fix empty corpus * Add JS ethcore_gasPriceHistogram * Fix typo (s/types/type/) & subsequent failing test * Fix return type & formatting * bucketBounds * Add jsapi e2e test verification
This commit is contained in:
@@ -104,6 +104,25 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
gasPriceHistogram: {
|
||||
desc: 'Returns a snapshot of the historic gas prices',
|
||||
params: [],
|
||||
returns: {
|
||||
type: Object,
|
||||
desc: 'Historic values',
|
||||
details: {
|
||||
bucketBounds: {
|
||||
type: Array,
|
||||
desc: 'Array of U256 bound values'
|
||||
},
|
||||
count: {
|
||||
type: Array,
|
||||
desc: 'Array of U64 counts'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
generateSecretPhrase: {
|
||||
desc: 'Creates a secret phrase that can be associated with an account',
|
||||
params: [],
|
||||
|
||||
Reference in New Issue
Block a user