-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Dec 10, 2017
1 parent
62ac697
commit 523edbb
Showing
3 changed files
with
97 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
''' | ||
this file is for the constants used in the prediction model | ||
these are generated from a geth node with globalslots set to 8000. | ||
If you run locally, you should check to see if these are accurate using model_gas.py | ||
you should also refit the model periodically as they may change over time. | ||
You should have about >20k transactions in the database to fit the model accurately | ||
''' | ||
#intercept from poisson model | ||
#hashpower accepting coefficient | ||
#transactions at or above in txpool coefficient | ||
#interaction term with highgas offered and hashpower. not currently using | ||
#highgas offefred coefficient | ||
|
||
INTERCEPT = 4.1401 | ||
HPA_COEF = -0.0399 | ||
TXATABOVE_COEF = 0.0002 | ||
INTERACT_COEF = 0 | ||
HIGHGAS_COEF = 1.9645 | ||
|
||
#high gas offered is defined based as a percentage of the gas limit | ||
#highgas2 is the only one that matters right now | ||
|
||
HIGHGAS1 = .037 | ||
HIGHGAS2 = .15 | ||
|