Commit Graph

204 Commits

Author SHA1 Message Date
StephenButtolph 26edbc5e6e cleaned up avalanche bootstrapping 2020-06-23 19:57:44 -04:00
StephenButtolph 16f006edc9 Removed no longer upheld invariant 2020-06-23 19:43:03 -04:00
StephenButtolph 8c7934515c removed mutually recursive functions for fetching 2020-06-23 19:41:22 -04:00
StephenButtolph 561e021e67 Merge branch 'denali' into limit-outstanding-requests 2020-06-23 19:19:19 -04:00
Dan Laine fa11fecbb0 pre-allocate map capacity in consensus 2020-06-23 17:15:25 -04:00
Dan Laine 875b2d0cab remove errant newline 2020-06-23 16:54:25 -04:00
Dan Laine 8ce7bda92a cleanup 2020-06-23 16:54:03 -04:00
Dan Laine 6c6136d551 only downsize underlying arrays if they're much too large 2020-06-23 16:44:02 -04:00
Dan Laine 7f5693dfd3 reduce MaxTimeFetchingAncestors from 100ms to 50ms 2020-06-23 15:08:15 -04:00
Dan Laine 55079aa893 add CappedList for ids.Set and use it in fetchANeededVtx 2020-06-23 15:01:55 -04:00
Dan Laine 19a3f69e99 Merge branch 'duplicated-writes' into memory-improvements 2020-06-23 13:10:01 -04:00
Dan Laine c9aa8eedc2 pre-allocate arrays 2020-06-22 16:50:31 -04:00
StephenButtolph 3a854ebdec handler engine gets/sets 2020-06-22 15:20:35 -04:00
Stephen Buttolph db01f2e7e9
Merge pull request #106 from ava-labs/snowball-testing
Clarify that the snowball byzantine struct is only for testing
2020-06-22 01:25:01 -04:00
Stephen Buttolph dbdf3b35f9
Merge pull request #105 from ava-labs/avalanche-testing
Set up tests for error handling in avalanche
2020-06-22 01:24:34 -04:00
Stephen Buttolph 21b2fe8313
Merge pull request #104 from ava-labs/snowstorm-testing
Set up tests for error handling in snowstorm
2020-06-22 01:23:47 -04:00
Stephen Buttolph 18372f03dd
Merge pull request #102 from ava-labs/snowman-testing
Added tests for error checking in snowman
2020-06-22 01:23:18 -04:00
StephenButtolph c88c85ea9b Minor cleanup in snowball consensus 2020-06-22 00:14:19 -04:00
StephenButtolph 12297cb0d2 Clarify that the snowball byzantine struct is only for testing 2020-06-22 00:08:11 -04:00
StephenButtolph 3211546b5a Set up tests for error handling in avalanche 2020-06-21 23:56:08 -04:00
StephenButtolph fb7e491000 Set up tests for error handling in snowstorm 2020-06-21 22:38:53 -04:00
StephenButtolph d923d5c0f9 Cleaned up tests 2020-06-21 21:30:29 -04:00
StephenButtolph 8865eabec7 Added tests for error checking in snowman 2020-06-21 21:26:50 -04:00
StephenButtolph d2573be25f Added duration metrics 2020-06-21 20:00:54 -04:00
StephenButtolph 7a2a7f0add fixed polls metrics 2020-06-21 19:44:35 -04:00
StephenButtolph b0ad887a42 refactored polls into their own sub package 2020-06-21 19:38:24 -04:00
Dan Laine 67d9281501 change maximum # outstanding to 8 to reduce load on nodes 2020-06-19 18:06:04 -04:00
Dan Laine 4d4a073d60 only have 15 outstanding GetAncestors at a time during bootstrapping to not flood the network 2020-06-19 17:57:47 -04:00
Stephen Buttolph 2e13c33f23
Merge pull request #86 from ava-labs/bootstrap-process-list
Bootstrap process list
2020-06-19 16:36:45 -04:00
Dan Laine 7c05353d3d skip unneccessary parse 2020-06-19 16:33:33 -04:00
Dan Laine 245f13ea65 add stripeDistance and stripeWidth 2020-06-19 16:29:27 -04:00
Stephen Buttolph f2126cba19
Merge pull request #87 from ava-labs/remove-tx-dependencies
use transitive dependencies when possible with transaction dependencies
2020-06-19 16:16:11 -04:00
Stephen Buttolph 145edd2864
Merge pull request #94 from ava-labs/fix-query-failed-message-formatting
Fix query failed message formatting
2020-06-19 16:15:07 -04:00
StephenButtolph 975198bb5e report error returned by the snowstorm RecordPoll 2020-06-19 15:13:34 -04:00
Aaron Buchwald 25478846d3
Remove extra string formatter in chain router QueryFailed message 2020-06-19 13:34:47 -04:00
StephenButtolph 534ef0bffc Merge branch 'denali' into improve-memory 2020-06-19 13:30:55 -04:00
Aaron Buchwald 28a313becf
Fix param attribute access 2020-06-19 13:02:28 -04:00
Dan Laine 8b75abdee0 cache only contains vertices at height 5000, 10000, etc. 2020-06-19 12:18:20 -04:00
StephenButtolph 006ff75149 improve leveldb batch usage and pointer releasing in caches 2020-06-19 11:02:38 -04:00
Aaron Buchwald a3d3ef4787 Change ForceAccepted to process list of already stored vtxs 2020-06-18 14:49:38 -04:00
StephenButtolph 84c4e30937 formatting update 2020-06-18 00:30:15 -04:00
Stephen Buttolph e8114cd814
Merge branch 'master' into bootstrap-heap 2020-06-17 20:58:45 -04:00
Dan Laine 15898c4ac2 style fix 2020-06-17 20:41:02 -04:00
Dan Laine f0cd642c2d move cache check out of loop 2020-06-17 20:35:28 -04:00
StephenButtolph 9a43e1222b added tests 2020-06-17 20:31:13 -04:00
Dan Laine f4a789b433 use heap in bootstrapping to reduce amount of work done. Move cache check to reduce memory allocations. 2020-06-17 20:15:42 -04:00
Dan Laine 4da1ce58fb patch for bug that caused bootstrapping to never finish 2020-06-17 19:42:11 -04:00
StephenButtolph 3d6fff70e0 nits to clean up the PR 2020-06-16 23:53:19 -04:00
Stephen Buttolph 19d871538e
Merge branch 'master' into polls-early-termination 2020-06-16 23:29:35 -04:00
StephenButtolph 8ec2862c04 Merge branch 'master' of github.com:ava-labs/gecko-internal 2020-06-16 23:08:29 -04:00