Commit Graph

  • ded41c0749 [NOD-1063] Make findIndex a bit nicer to use. Also rename it to findAncestorIndexOfNode. stasatdaglabs 2020-06-24 11:08:19 +03:00
  • 99eb4feb30 [NOD-1085] Use all nonce space in kaspaminer Ori Newman 2020-06-24 11:06:18 +03:00
  • d26e640655 [NOD-1063] Use findIndex directly in findAncestorAmongChildren. stasatdaglabs 2020-06-24 10:19:49 +03:00
  • 754ee97047 [NOD-1063] Get rid of futureCoveringBlock. stasatdaglabs 2020-06-24 10:12:34 +03:00
  • 4a8172073e [NOD-1063] Remove blockNode from futureCoveringBlock. stasatdaglabs 2020-06-23 18:12:00 +03:00
  • efca8c98d4 [NOD-1063] Fix a bug in expandIntervalInReindexRootChosenChild. stasatdaglabs 2020-06-23 16:44:17 +03:00
  • 0a4f0f4212 [NOD-1063] Fold more temporary variables into newReachabilityInterval. stasatdaglabs 2020-06-23 16:08:47 +03:00
  • fd21f0b0eb [NOD-1063] Fold temporary variables into newReachabilityInterval. stasatdaglabs 2020-06-23 16:05:14 +03:00
  • ebae90b1f9 [NOD-1063] Simplify splitChildrenAroundChosenChild. stasatdaglabs 2020-06-23 14:39:02 +03:00
  • b84759929e [NOD-1063] Add a test case for intervalBefore. stasatdaglabs 2020-06-23 14:30:29 +03:00
  • eba3983011 [NOD-1063] Disambiguate a varaible name. stasatdaglabs 2020-06-23 14:22:44 +03:00
  • 73f48d8f37 [NOD-1063] Merge assignments. stasatdaglabs 2020-06-23 14:19:18 +03:00
  • 104fbcf668 [NOD-1063] Use Wrapf instead of Errorf. stasatdaglabs 2020-06-23 13:51:12 +03:00
  • 6f7a754d29 [NOD-1063] Pass a reference to the dag into reachabilityTree. stasatdaglabs 2020-06-23 13:50:02 +03:00
  • 9d1a558bb4 [NOD-1063] Fix merge errors. stasatdaglabs 2020-06-23 13:32:38 +03:00
  • f5fe92752a [NOD-1063] Fix merge errors. stasatdaglabs 2020-06-23 13:26:36 +03:00
  • d9e987a658 Merge remote-tracking branch 'origin/v0.5.0-dev' into nod-1063-deep-reachability stasatdaglabs 2020-06-23 13:15:43 +03:00
  • 08c1ed90f3 [NOD-1063] Update newReachabilityTree to take an instance of reachabilityStore. stasatdaglabs 2020-06-23 13:13:47 +03:00
  • ded63a39b8 [NOD-1063] Move the rest of the functions in reachability.go into the reachabilityTree struct. stasatdaglabs 2020-06-23 13:09:47 +03:00
  • e9db870cc2 [NOD-1063] Move reachabilityStore into reachabilityTree. stasatdaglabs 2020-06-23 12:55:09 +03:00
  • df8ff67a22 [NOD-1063] Rename functions under reachabilityTree. stasatdaglabs 2020-06-23 12:42:57 +03:00
  • e72f8a09fb [NOD-1063] Create a new struct to hold reachability stuff called reachabilityTree. stasatdaglabs 2020-06-23 12:36:20 +03:00
  • 1957db90cb [NOD-1063] Remove setInterval. stasatdaglabs 2020-06-23 11:48:20 +03:00
  • cea2c0b9ab [NOD-1063] Make map[*reachabilityTreeNode]struct{} into a type alias with a copyAllFrom method. stasatdaglabs 2020-06-23 11:13:02 +03:00
  • 82b8fc39b0 [NOD-1063] Remove redundant nil conditions. stasatdaglabs 2020-06-23 10:56:53 +03:00
  • 4c3735a897
    [NOD-906] Move transaction mass limit from CheckTransactionSanity to mempool (#772) Ori Newman 2020-06-22 17:20:17 +03:00
  • 22fd38c053
    [NOD-1060] Don't sync from misbehaving peer (#768) Ori Newman 2020-06-22 17:15:03 +03:00
  • 895f67a8d4
    [NOD-1035] Use reachability to check finality (#763) Ori Newman 2020-06-22 17:14:59 +03:00
  • fcf766f86a [NOD-1063] Fix reindexIntervalsEarlierThanReindexRoot.` stasatdaglabs 2020-06-22 15:59:27 +03:00
  • 56e807b663
    [NOD-999] Set TargetOutbound=0 to prevent rogue connectionRequests except the one requested (#771) Svarog 2020-06-22 14:20:12 +03:00
  • 856f52bfc4 [NOD-906] Add spaces to comments Ori Newman 2020-06-22 14:15:56 +03:00
  • 5c0176a847 [NOD-1063] Fix findCommonAncestor. stasatdaglabs 2020-06-22 13:26:33 +03:00
  • 6b34fa4d3f Merge remote-tracking branch 'origin/v0.5.0-dev' into nod-1063-deep-reachability stasatdaglabs 2020-06-22 11:30:48 +03:00
  • 8b4062a5aa [NOD-1063] Convert modifiedTreeNodes from slices to sets. stasatdaglabs 2020-06-22 11:25:31 +03:00
  • 5d3a881589 [NOD-1063] Add a debug log for updateReachabilityReindexRoot. stasatdaglabs 2020-06-22 10:34:30 +03:00
  • c4ae46fc4a [NOD-1063] Implement reclaimIntervalAfterChosenChild. stasatdaglabs 2020-06-22 10:28:36 +03:00
  • 6f5f134b30 [NOD-1063] Rename reindexIntervalsBeforeReindexRoot to reindexIntervalsEarlierThanReindexRoot. stasatdaglabs 2020-06-22 10:08:16 +03:00
  • 35d96877c4 [NOD-1063] Add a debug log for reindexIntervalsBeforeReindexRoot. stasatdaglabs 2020-06-22 10:07:30 +03:00
  • 4e3f989288 [NOD-906] Fix tests Ori Newman 2020-06-21 18:37:03 +03:00
  • 60a366389d [NOD-1063] Implement reclaimIntervalBeforeChosenChild. stasatdaglabs 2020-06-21 17:55:19 +03:00
  • 8755f55724 [NOD-906] Move transaction mass limit from CheckTransactionSanity to mempool Ori Newman 2020-06-21 17:25:37 +03:00
  • d62318bd56 [NOD-1063] Implement top-level logic of reindexIntervalsBeforeReindexRoot. stasatdaglabs 2020-06-21 16:29:08 +03:00
  • af64c7dc2d Merge remote-tracking branch 'origin/v0.4.1-dev' into v0.5.0-dev Mike Zak 2020-06-21 16:15:05 +03:00
  • f5bd314b11 [NOD-1063] Begin implementing reindexIntervalsBeforeReindexRoot. stasatdaglabs 2020-06-21 15:12:40 +03:00
  • a934fb960b [NOD-1063] Finished implementing concentrateReachabilityTreeIntervalAroundReindexRootChild. stasatdaglabs 2020-06-21 14:11:06 +03:00
  • 9e50c8b119 [NOD-1063] Implement expandReachabilityTreeIntervalInChosenReindexRootChild. stasatdaglabs 2020-06-21 13:58:58 +03:00
  • 38d2fb2b7e [NOD-1067] Add errors when store is closed Ori Newman 2020-06-21 13:26:19 +03:00
  • 1fc3444d71 [NOD-1067] Fix comments Ori Newman 2020-06-21 13:19:39 +03:00
  • 5699f0922f [NOD-1063] Extract tightenReachabilityTreeIntervalsBeforeChosenReindexRootChild and tightenReachabilityTreeIntervalsAfterChosenReindexRootChild to separate functions. stasatdaglabs 2020-06-21 13:14:15 +03:00
  • 9e4b498ccb [NOD-1063] Implement propagateChildIntervals. stasatdaglabs 2020-06-21 12:57:16 +03:00
  • 0fabb87be3 [NOD-999] Set TargetOutbound=0 to prevent rogue connectionRequests except the one requested Mike Zak 2020-06-21 12:54:00 +03:00
  • 5ee8a781a1 [NOD-1063] Implement calcReachabilityTreeNodeSizes. stasatdaglabs 2020-06-21 11:51:53 +03:00
  • 97f1eef56b [NOD-1063] Implement splitReindexRootChildrenAroundChosen. stasatdaglabs 2020-06-21 11:41:26 +03:00
  • 5186f68222 [NOD-1063] Add reachabilityReindexSlack. stasatdaglabs 2020-06-21 11:19:54 +03:00
  • 5e6812cc49 [NOD-1063] Extract updateReachabilityReindexRoot to a separate function. stasatdaglabs 2020-06-21 10:49:44 +03:00
  • 4a25ef90ea [NOD-1064] Don't send GetBlockInvsMsg with lowHash = nil (#769) v0.4.0-dev Svarog 2020-06-17 14:18:00 +03:00
  • 1e6458973b [NOD-1064] Don't send GetBlockInvsMsg with lowHash = nil (#769) v0.4.1-dev Svarog 2020-06-17 14:18:00 +03:00
  • 686c25c72d [NOD-1064] Don't send GetBlockInvsMsg with lowHash = nil (#769) v0.3.0-dev Svarog 2020-06-17 14:18:00 +03:00
  • f904ad2474 [NOD-1063] Remove BlockDAG reference in findReachabilityTreeAncestorInChildren. stasatdaglabs 2020-06-18 14:37:47 +03:00
  • 598ef8432f [NOD-1063] Fix findReachabilityTreeAncestorInChildren. stasatdaglabs 2020-06-18 14:31:10 +03:00
  • 2f14261ccd [NOD-1063] Add reachabilityReindexWindow. stasatdaglabs 2020-06-18 12:48:52 +03:00
  • 30cc96892f [NOD-1063] Implement findReachabilityTreeAncestorInChildren. stasatdaglabs 2020-06-18 12:40:40 +03:00
  • 7bf8bb5436
    [NOD-1017] Move peers.json to db (#733) Ori Newman 2020-06-18 12:12:49 +03:00
  • b592679979 [NOD-1063] Implement findCommonAncestor. stasatdaglabs 2020-06-18 12:04:23 +03:00
  • b718b777f2 [NOD-1067] Add comments Ori Newman 2020-06-18 11:52:33 +03:00
  • 2a7065a0a5 [NOD-1067] Use the right locks Ori Newman 2020-06-18 11:52:12 +03:00
  • 2eff6810e5 [NOD-1067] Add DeleteUpToLocation and PruneBlocksData functions Ori Newman 2020-06-17 19:53:02 +03:00
  • 5885f6baa2 [NOD-1067] Add database.StoreLocation type Ori Newman 2020-06-17 17:20:41 +03:00
  • 70e809ce24 [NOD-1063] Start implementing findNextReachabilityReindexRoot. stasatdaglabs 2020-06-17 16:17:27 +03:00
  • 95585ea91f [NOD-1063] Add reachabilityReindexRoot. stasatdaglabs 2020-06-17 15:35:02 +03:00
  • 1358911d95
    [NOD-1064] Don't send GetBlockInvsMsg with lowHash = nil (#769) Svarog 2020-06-17 14:18:00 +03:00
  • 685f5fdb28 [NOD-1064] Don't send GetBlockInvsMsg with lowHash = nil Mike Zak 2020-06-17 13:59:22 +03:00
  • 136e1cade3 [NOD-1060] Don't sync from peers that break the netsync protocol Ori Newman 2020-06-17 13:50:16 +03:00
  • 5502f6914f [NOD-1063] Add helper functions to reachabilityTreeNode. stasatdaglabs 2020-06-17 12:30:27 +03:00
  • 10f36c7291 [NOD-1063] Remove the remainingInterval field. stasatdaglabs 2020-06-17 12:19:49 +03:00
  • 27ea69f752 Merge remote-tracking branch 'origin/nod-1032-pruning-part-1-2' into nod-1056-dont-check-isFinalized-on-validateParents Ori Newman 2020-06-17 11:54:43 +03:00
  • 1271d2f113 [NOD-1038] Give higher priority for requesting missing ancestors when sending a getdata message (#767) Ori Newman 2020-06-17 11:29:39 +03:00
  • 5d7fa2fcb7 [NOD-1034] Make isAncestorOf exclusive and also more explicit, and add TestReachabilityTreeNodeIsAncestorOf Ori Newman 2020-06-17 11:48:28 +03:00
  • 7d44c6f886
    [NOD-1055] Give higher priority for requesting missing ancestors when sending a getdata message (#767) Ori Newman 2020-06-17 11:29:39 +03:00
  • 65958bcf05 [NOD-1004] Added comment for AddressKey Mike Zak 2020-06-17 10:50:32 +03:00
  • bc0227b49b
    [NOD-1059] Always call sm.restartSyncIfNeeded() when getting selectedTip message (#766) Ori Newman 2020-06-16 16:51:38 +03:00
  • 7e5930af66 [NOD-1004] Make AddressKey a type alias. stasatdaglabs 2020-06-16 16:47:33 +03:00
  • 2873f4f55f [NOD-1055] Give higher priority for requesting missing ancestors when sending a getdata message Ori Newman 2020-06-16 16:22:47 +03:00
  • 41ef59b6a5 [NOD-1004] Remove an unnecessary sort. stasatdaglabs 2020-06-16 16:15:03 +03:00
  • a0320a7181 [NOD-1004] Remove a mystery comment. stasatdaglabs 2020-06-16 16:09:29 +03:00
  • a6e4f2bd17 Merge remote-tracking branch 'origin/v0.5.0-dev' into nod-1004-optimize-get-address stasatdaglabs 2020-06-16 15:51:43 +03:00
  • fa27335184
    [NOD-1057] Merge v0.5.0-dev (#765) Ori Newman 2020-06-16 13:34:07 +03:00
  • 3d9106a58b [NOD-1059] Always call sm.restartSyncIfNeeded() when getting selectedTip message Ori Newman 2020-06-16 11:46:21 +03:00
  • a00f485885 [NOD-1034] Change isAncestorOf to be exclusive Ori Newman 2020-06-16 11:26:15 +03:00
  • dc643c2d76
    [NOD-833] Remove getBlockTemplate capabilites and move mining address to getBlockTemplate (#762) Ori Newman 2020-06-16 11:01:06 +03:00
  • e6f0d4450c [NOD-1034] Rename checkFinalityRules->checkFinalityViolation Ori Newman 2020-06-16 11:00:39 +03:00
  • 2ef70bd22e [NOD-1034] Fix comments Ori Newman 2020-06-16 11:00:02 +03:00
  • 23d49fde46 [NOD-1034] Add comments and rename variables Ori Newman 2020-06-15 18:30:50 +03:00
  • 1fc802dee2 Merge remote-tracking branch 'origin/v0.5.0-dev' into nod-1057-merge-v0.5.0-dev Ori Newman 2020-06-15 18:06:41 +03:00
  • 7bb3929dad [NOD-1056] Don't check isFinalized when validating parents Ori Newman 2020-06-15 17:44:40 +03:00
  • fed72f1d1d [NOD-833] Break long lines Ori Newman 2020-06-15 17:41:49 +03:00
  • bd31159b77 [NOD-1034] Use reachability to check finality Ori Newman 2020-06-15 17:21:33 +03:00
  • 0744e8ebc0
    [NOD-1042] Ignore very high orphans (#761) Ori Newman 2020-06-15 16:08:25 +03:00
  • 9b606e3895 [NOD-1042] Fix log Ori Newman 2020-06-15 15:20:44 +03:00
  • 84e5dad01d [NOD-833] Fix tests Ori Newman 2020-06-15 15:15:49 +03:00