Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't query the blockchain for hardfork which causes major slowdown #764

Merged
merged 1 commit into from Jul 26, 2019

Conversation

Doy-lee
Copy link
Collaborator

@Doy-lee Doy-lee commented Jul 26, 2019

This one line was causing a big slow down after doing some profiling.

Now the time to rescan appears to be more linear with the size of the Service Node List. Won't get these sorts of good numbers without the store every 10k improvement though as well.

@jagerman

2019-07-26 07:29:43.393 I Recalculating service nodes list, scanning blockchain from height: 101250 to: 321467                                                                                                                                                                                                              
2019-07-26 07:29:46.495 I ... scanning height 111250 (3.101s)                                                                                                                                                                                                                                                               
2019-07-26 07:29:50.296 I ... scanning height 121250 (3.8s)                                                                                                                                                                                                                                                                 
2019-07-26 07:29:54.808 I ... scanning height 131250 (4.512s)                                                                                                                                                                                                                                                               
2019-07-26 07:29:59.782 I ... scanning height 141250 (4.974s)                                                                                                                                                                                                                                                               
2019-07-26 07:30:05.008 I ... scanning height 151250 (5.225s)                                                                                                                                                                                                                                                               
2019-07-26 07:30:09.992 I ... scanning height 161250 (4.983s)                                                                                                                                                                                                                                                               
2019-07-26 07:30:18.207 I ... scanning height 171250 (8.215s)                                                                                                                                                                                                                                                               
2019-07-26 07:30:26.435 I ... scanning height 181250 (8.227s)                                                                                                                                                                                                                                                               
2019-07-26 07:30:34.800 I ... scanning height 191250 (8.365s)                                                                                                                                                                                                                                                               
2019-07-26 07:30:44.361 I ... scanning height 201250 (9.56s)                                                                                                                                                                                                                                                                
2019-07-26 07:30:52.733 I ... scanning height 211250 (8.372s)                                                                                                                                                                                                                                                               
2019-07-26 07:31:01.969 I ... scanning height 221250 (9.236s)                                                                                                                                                                                                                                                               
2019-07-26 07:31:11.567 I ... scanning height 231250 (9.597s)                                                                                                                                                                                                                                                               
2019-07-26 07:31:25.429 I ... scanning height 241250 (13.861s)                                                                                                                                                                                                                                                              
2019-07-26 07:31:44.047 I ... scanning height 251250 (18.618s)                                                                                                                                                                                                                                                              
2019-07-26 07:32:00.698 I ... scanning height 261250 (16.65s)                                                                                                                                                                                                                                                               
2019-07-26 07:32:15.335 I ... scanning height 271250 (14.637s)                                                                                                                                                                                                                                                              
2019-07-26 07:32:29.187 I ... scanning height 281250 (13.851s)                                                                                                                                                                                                                                                              
2019-07-26 07:32:42.654 I ... scanning height 291250 (13.466s)                                                                                                                                                                                                                                                              
2019-07-26 07:32:56.564 I ... scanning height 301250 (13.91s)                                                                                                                                                                                                                                                               
2019-07-26 07:33:10.606 I ... scanning height 311250 (14.042s)                                                                                                                                                                                                                                                              
2019-07-26 07:33:27.399 I ... scanning height 321250 (16.792s)                                                                                                                                                                                                                                                              
2019-07-26 07:33:27.760 I Done recalculating service nodes list (224.366s)        

@Doy-lee Doy-lee merged commit ead8997 into oxen-io:dev Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants