Commit Graph

  • 1984f8961d Make reachabilityData an interface Mike Zak 2020-12-29 12:23:44 +02:00
  • de5276f674 Rename reachabilityManager.data to dataForInsertion, and use it only during insertions Mike Zak 2020-12-27 17:04:06 +02:00
  • 533fa8c00e
    Change sirtual parents selection to allow faster branch merges in the network (#1315) Elichai Turkel 2020-12-29 21:42:31 +02:00
  • b8c7a0a42d
    Fix review nits Elichai Turkel 2020-12-29 18:38:42 +02:00
  • 9833506138 Add a new message: BlockLocatorHighestHash. stasatdaglabs 2020-12-29 17:17:39 +02:00
  • 0f93189c16
    Don't print the whole UTXODiff to log, it might be quite huge (#1318) Svarog 2020-12-29 17:16:38 +02:00
  • 52427cb953
    Reduce the amount of calls to FinalityPoint() (#1317) Elichai Turkel 2020-12-29 17:08:06 +02:00
  • 87f48fd2b8 Don't print the whole UTXODiff to log, it might be quite huge Mike Zak 2020-12-29 17:02:11 +02:00
  • e84c652235
    Reduce the amount of calls to FinalityPoint() Elichai Turkel 2020-12-29 16:59:19 +02:00
  • 6db4a7d1ab
    Add a test for pick virtual parents Elichai Turkel 2020-12-29 16:22:42 +02:00
  • 5c1a62dece
    Add a Test GhostDAG sorter Elichai Turkel 2020-12-29 16:21:59 +02:00
  • f924141f14
    if more candidates then max, choose half with highest blueWork and half with lowest Elichai Turkel 2020-12-29 14:27:12 +02:00
  • d72f70fabe
    Adds new dags for GHOSTDAG tests (formatted as json files). (#1187) talelbaz 2020-12-29 14:10:38 +02:00
  • 76458216a9 Change the error msg for the number of tests (6 instead of 3). tal 2020-12-29 14:03:43 +02:00
  • e58129fcd6 a tal 2020-12-29 14:00:26 +02:00
  • 49b6cc6038
    Add mutable and immutable header interfaces (#1305) Ori Newman 2020-12-29 13:55:17 +02:00
  • 6aa5a834d3 Fix Equal implementation Ori Newman 2020-12-29 13:43:47 +02:00
  • 035c29d9b6 Fix Equal signature Ori Newman 2020-12-29 13:36:40 +02:00
  • 21e5d02209 Remove false comment Ori Newman 2020-12-29 13:36:02 +02:00
  • 90a6e08e22 Merge remote-tracking branch 'origin/v0.8.4-dev' into immutable-headers Ori Newman 2020-12-29 12:14:57 +02:00
  • c10a087696
    Remove virtualDiffParents that aren't in V.Past or in P.Future (#1310) Elichai Turkel 2020-12-29 12:07:45 +02:00
  • 02d5fb29cf
    Fix notifyVirtualSelectedParentBlueScoreChanged to show the selected tip blue score instead of the virtual's (#1309) Ori Newman 2020-12-29 12:07:05 +02:00
  • cbc7b84880 Fix ShouldMine() Ori Newman 2020-12-29 12:02:11 +02:00
  • 3f7975c344 Fix ShouldMine() to fetch selected tip header Ori Newman 2020-12-29 11:58:40 +02:00
  • 50333eeb3a Merge remote-tracking branch 'origin/v0.8.4-dev' into fix-selected-tip-notification Ori Newman 2020-12-29 11:54:58 +02:00
  • bdaeebe5d6
    Remove virtualDiffParents that aren't in V.Past or in P.Future Elichai Turkel 2020-12-28 18:17:25 +02:00
  • bb171391a2 Merge remote-tracking branch 'origin/v0.8.4-dev' into immutable-headers Ori Newman 2020-12-29 11:30:12 +02:00
  • f2ac8c5f87 Changes txn version from int32 to uint16. tal 2020-12-29 10:36:38 +02:00
  • 48278bd1c0
    Slightly improve the performance of antiPastHashesBetween. (#1312) stasatdaglabs 2020-12-29 10:36:18 +02:00
  • d91afbfe3b
    Change most Tracef to Debugf (#1302) Ori Newman 2020-12-29 10:32:28 +02:00
  • 530a71fb5d Slightly improve the performance of antiPastHashesBetween. stasatdaglabs 2020-12-29 10:27:21 +02:00
  • 5f22632836
    Use sync rate for getBlockTemplate's isSynced (#1311) Ori Newman 2020-12-29 09:28:02 +02:00
  • 27e753e86e Fix a typo Mike Zak 2020-12-29 09:21:16 +02:00
  • 4aafe8a630
    Fix a crashed caused by orphans whose validation failed. (#1297) stasatdaglabs 2020-12-29 09:02:28 +02:00
  • 9f2e64aff5 Use sync rate for getBlockTemplate's isSynced Ori Newman 2020-12-28 19:35:38 +02:00
  • c6dcdc7a11 Adds validation of rejecting blocks with unknown versions. tal 2020-12-28 17:03:20 +02:00
  • 6fb434f5f4 Fix notifyVirtualSelectedParentBlueScoreChanged to show the selected tip blue score instead of the virtual's Ori Newman 2020-12-28 16:54:22 +02:00
  • 18ccf5fb49 All tests passed for changed block version from int32 to uint16 tal 2020-12-28 16:44:18 +02:00
  • 53afe2afa0 Increase maximum parents to 20 Mike Zak 2020-12-28 16:36:25 +02:00
  • 7e379028f3
    Log the time it takes to delete blocks and save the utxo set for pruning point (#1307) Elichai Turkel 2020-12-28 16:22:00 +02:00
  • af1b8c8490
    Move version initializiation to init function to prevent race conditions (#1299) Elichai Turkel 2020-12-28 16:04:00 +02:00
  • 65e685bca9
    Log the time it takes to delete blocks and save the utxo set for pruning point Elichai Turkel 2020-12-28 16:00:06 +02:00
  • 4196e106db Add mutable and immutable header interfaces Ori Newman 2020-12-28 15:55:47 +02:00
  • b24c831652 Remove diff from log Ori Newman 2020-12-28 14:45:09 +02:00
  • 8a8338c84a Change most Tracef to Debugf Ori Newman 2020-12-28 14:07:24 +02:00
  • c7c8b25c09
    Set stream max message size and increase the max message size to 1GB (#1300) Ori Newman 2020-12-28 12:53:11 +02:00
  • 06bdf66bd8 Set stream max message size and increase the max message size to 1GB Ori Newman 2020-12-28 12:13:53 +02:00
  • b03d5ee0b7 All tests are done. tal 2020-12-28 12:06:02 +02:00
  • 8fd0d825dd
    Move version initializiation to init function to prevent race conditions Elichai Turkel 2020-12-28 11:39:33 +02:00
  • a4e27215b6 a tal 2020-12-28 11:25:10 +02:00
  • 338054e649 Fix a crashed caused by orphans whose validation failed. stasatdaglabs 2020-12-28 10:40:12 +02:00
  • c96985f9db a tal 2020-12-28 10:39:34 +02:00
  • b0251fe1a6
    Add missing lock to IsValidPruningPoint. (#1296) stasatdaglabs 2020-12-28 10:08:36 +02:00
  • d118c78611 Add missing lock to IsValidPruningPoint. stasatdaglabs 2020-12-28 09:47:26 +02:00
  • cfe013eca7
    Add IsHeaderOnly field to BlockVerboseData (#1295) Ori Newman 2020-12-27 18:23:51 +02:00
  • 0d96f17412 Add IsHeaderOnly field to BlockVerboseData Ori Newman 2020-12-27 18:06:59 +02:00
  • 50e74bf412
    Add BlueScore to BlockVerboseData. (#1294) stasatdaglabs 2020-12-27 17:57:43 +02:00
  • 8709376f52 Add BlueScore to BlockVerboseData. stasatdaglabs 2020-12-27 17:43:23 +02:00
  • 12f1c3dfab
    Fix a crash in GetMissingBlockBodyHashes (#1289) stasatdaglabs 2020-12-27 17:03:21 +02:00
  • a231ec7214
    Make only one transaction in validateAndInsertBlock (#1292) Ori Newman 2020-12-27 16:37:09 +02:00
  • 5c9a4d681f Re-request headers in requestHeaders if we didn't receive the highHash. stasatdaglabs 2020-12-27 16:21:41 +02:00
  • e1192593e3 Make only one transaction in validateAndInsertBlock Ori Newman 2020-12-27 16:00:57 +02:00
  • c92d1bfa21 Extract blockHeap.ToSlice. stasatdaglabs 2020-12-27 14:07:05 +02:00
  • 7d48e56ee4 Ban a peer that doesn't send us all the requested headers during IBD. stasatdaglabs 2020-12-27 14:01:08 +02:00
  • 99f771e508 Move missing-block-hash guards to consensus.go. stasatdaglabs 2020-12-27 13:44:53 +02:00
  • bcc10b362f Guard against requests with a non-existing block hash. stasatdaglabs 2020-12-27 12:38:35 +02:00
  • 8a02bb9608 Remove the limit on the amount of hashes returned from antiPastHashesBetween. stasatdaglabs 2020-12-27 12:21:23 +02:00
  • 8aecf961bc
    Red inclusion (#1275) Ori Newman 2020-12-24 18:12:46 +02:00
  • 3fc3847279 Fix comments Ori Newman 2020-12-24 17:58:29 +02:00
  • 0dea766373
    Fix the stopOldTemplateSolving channel in the miner getting closed twice (#1286) stasatdaglabs 2020-12-24 17:58:28 +02:00
  • 4e01cabb97 Remove redundant dependency Ori Newman 2020-12-24 17:57:30 +02:00
  • 3f0c30d2d0 Remove fetchUTXOSetIfMissing Ori Newman 2020-12-24 17:56:57 +02:00
  • 72331eb3c8 Fix tests Ori Newman 2020-12-24 17:52:15 +02:00
  • 665c5e2991 Remove a unused variable. stasatdaglabs 2020-12-24 17:49:17 +02:00
  • 89b6bd320f Fix the stopOldTemplateSolving channel in the miner getting closed twice. stasatdaglabs 2020-12-24 17:48:46 +02:00
  • 830ddf4735
    Fill testConsensus's dagParams (#1283) Ori Newman 2020-12-24 17:47:03 +02:00
  • 9d0f513e49
    Implement a simple mechanism to stop a miner from mining while kaspad is not synced (#1284) stasatdaglabs 2020-12-24 17:15:44 +02:00
  • 8329199201 Merge remote-tracking branch 'origin/v0.8.4-dev' into red-inclusion Ori Newman 2020-12-24 16:54:51 +02:00
  • bd97075e07
    Remove the limit to the returned headers from buildMsgBlockHeaders (#1281) stasatdaglabs 2020-12-24 16:53:26 +02:00
  • 14fcc39acf Rephrase a log. stasatdaglabs 2020-12-24 16:52:51 +02:00
  • 9aa161196a Add a warning for when kaspad is not synced. stasatdaglabs 2020-12-24 16:50:08 +02:00
  • 4055fd62bf Reintroduce isSynced into the GetBlockTemplate response. stasatdaglabs 2020-12-24 16:24:16 +02:00
  • 05941a76e7
    Make DomainHash and TransactionID read-only structs (#1282) Svarog 2020-12-24 16:15:23 +02:00
  • 70d4bcdcee go mod tidy Mike Zak 2020-12-24 15:58:04 +02:00
  • e50c5d6157 A few renamings Mike Zak 2020-12-24 15:52:36 +02:00
  • 92b78f4e31 Build msgBlockHeaders in batches rather than all at once. stasatdaglabs 2020-12-24 15:26:48 +02:00
  • 7cbda3b018
    Fix RPC requests with unknown payloads crashing kaspad (#1203) stasatdaglabs 2020-12-24 15:17:34 +02:00
  • fe51fe9518 Fill testConsensus's dagParams Ori Newman 2020-12-24 14:40:51 +02:00
  • 41a3e1e4cb Add comments Mike Zak 2020-12-24 14:39:37 +02:00
  • 9c741d349b Merge remote-tracking branch 'origin/v0.8.4-dev' into 1271-hash-read-only Mike Zak 2020-12-24 14:22:45 +02:00
  • f96bd27789 Fix all tests Mike Zak 2020-12-24 14:19:29 +02:00
  • ffefc4f2d1 Fix all tests Mike Zak 2020-12-24 14:17:29 +02:00
  • de4841e7d5 Remove the limit to the returned header hashes from buildMsgBlockHeaders. stasatdaglabs 2020-12-24 13:59:48 +02:00
  • a0b93e1230
    Fix deletePastBlocks (#1280) Ori Newman 2020-12-24 13:53:16 +02:00
  • b749b2db0b
    Fix transaction relay not working (#1279) stasatdaglabs 2020-12-24 10:40:56 +02:00
  • 717914319a
    Increase size of reachability and block-relations cache (#1272) Svarog 2020-12-24 10:27:05 +02:00
  • aa7b3cff95 Fix deletePastBlocks Ori Newman 2020-12-23 17:44:05 +02:00
  • 5d710de624
    wat Elichai Turkel 2020-12-23 17:32:50 +02:00
  • bd5961b918 Remove obsolete Read/WriteElement methods in appmessage Mike Zak 2020-12-23 17:20:03 +02:00
  • cad03e5bc5 Fix equality bug in handleRelayedTransactionsFlow. stasatdaglabs 2020-12-23 17:17:06 +02:00