Commit Graph

45 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
Dan Laine 55079aa893 add CappedList for ids.Set and use it in fetchANeededVtx 2020-06-23 15:01:55 -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
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
Dan Laine 8b75abdee0 cache only contains vertices at height 5000, 10000, etc. 2020-06-19 12:18:20 -04:00
Aaron Buchwald a3d3ef4787 Change ForceAccepted to process list of already stored vtxs 2020-06-18 14:49:38 -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
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 426fac9b10 Fixed duplicated logging errors 2020-06-10 02:41:58 -04:00
StephenButtolph acd44dacb8 fixed compile time error 2020-06-08 11:36:04 -04:00
StephenButtolph 2b305b0eca processed -> fetched 2020-06-08 11:21:32 -04:00
StephenButtolph 22d63033ba weight based on the beacons rather than the validators 2020-06-08 11:13:15 -04:00
StephenButtolph 921cca2ce1 Improved X-chain bootstrapping 2020-06-08 03:10:14 -04:00
StephenButtolph 11520fa704 merged 2020-06-07 01:08:53 -04:00
Dan Laine 9ff44359ab update termination condition for bootstrapping 2020-06-04 11:10:40 -04:00
Dan Laine 79a8c21457 add comments. add GetAncestorsFailed to router/sender 2020-06-04 10:54:26 -04:00
Dan Laine 37d5877a07 change ordering of network commands for backwards compatibility. Improve logs. Fix ancestorBytesLen initialization 2020-06-04 09:52:44 -04:00
Dan Laine 654f1c103b address (almost all) PR comments...still need to do final pass 2020-06-03 19:04:29 -04:00
Dan Laine 8f5a6b1db2 remove PutAncestor. Add timeout to GetAncestors. Reduce logging. 2020-06-02 16:20:48 -04:00
Dan Laine 00868d2a11 add multiput message which is sent in response to GetAncestors 2020-06-02 14:07:20 -04:00
Dan Laine e783af7fa7 revert to single-threaded model because multi-threaded model isn't safe 2020-06-02 08:42:52 -04:00
StephenButtolph cd669a3d98 Added bootstrapping notifications to VMs 2020-06-01 23:24:21 -04:00
Dan Laine 91771359ae log formatting 2020-06-01 17:41:35 -04:00
Dan Laine 0ec05641fd use thread-based model for avalanche bootstrapping. seems to work but untested. 2020-06-01 17:32:29 -04:00
StephenButtolph bdf9f27f7d Removed memory leak in bootstrapping 2020-05-29 15:03:00 -04:00
StephenButtolph 6318186848 wip currently has a deadlock error 2020-05-28 23:48:08 -04:00
StephenButtolph e57219a648 Merged bootstrapping error handling 2020-05-26 13:57:42 -04:00
StephenButtolph 6071672e4d minor code cleanup 2020-05-25 22:18:43 -04:00
Dan Laine 0a28f16cbe periodically print bootstrap progress to log. don't fetch ancestry of same vertex multiple times 2020-05-22 17:41:47 -04:00
StephenButtolph 896cafdcbb debugging utxo error 2020-05-20 11:37:01 -04:00
StephenButtolph b291ddaa91 lowered log level for byz node logging 2020-05-12 15:18:02 -04:00
StephenButtolph 9cd8789b3f merged 2020-05-12 14:50:35 -04:00
StephenButtolph f0be1c47dc lowered log level for byz node logging. Added bootstrapping finish logs 2020-05-12 14:26:38 -04:00
StephenButtolph 456295888a Fixed bootstrapping put container ID error 2020-05-03 18:38:12 -04:00
StephenButtolph 13a8167ceb removed containerID from getFailed messages 2020-05-01 14:45:21 -04:00
Anil Dasari 8b76cf601e replaced loop 2020-04-24 14:54:24 -07:00
StephenButtolph 6bcedf1d64 wip 2020-04-20 20:00:36 -04:00
StephenButtolph 611ada5655 Fixed early termination of bootstrap fetching 2020-03-24 19:08:53 -04:00
StephenButtolph b9e34e3b15 init repo 2020-03-10 15:20:34 -04:00