Commit Graph

  • a4c4fa7fa5 [NOD-1595] Don't swallow errors in GetDifficultyRatio Mike Zak 2020-12-09 11:50:25 +02:00
  • 8e361ae600 [NOD-1595] Mike Zak 2020-12-09 11:48:35 +02:00
  • feda4b6e5d [NOD-1593] Rename InsertBlockResult to BlockInsertionResult. stasatdaglabs 2020-12-09 11:35:48 +02:00
  • cb1d4d8189 [NOD-1579] Add InsertBlockResult to ValidateAndInsertBlock results. stasatdaglabs 2020-12-09 11:02:56 +02:00
  • 0bbb01e495 [NOD-1575] Flip condition Ori Newman 2020-12-09 10:36:13 +02:00
  • 4f866bdb0b [NOD-1595] Implement all fields of GetBlockDAGInfo Mike Zak 2020-12-09 10:17:49 +02:00
  • c9d1bb8b40 [NOD-1576] Implement reachabilitydata equal/clone unit tests karim1king 2020-12-09 03:04:20 +02:00
  • f4eeeea7ec Added tests andrey-hash 2020-12-09 01:35:39 +02:00
  • d1e1763a83 Added equal and clone functions tests for ghostdag and utxodiff andrey-hash 2020-12-08 21:33:32 +02:00
  • e5c9f28591
    Parallelize all the tests in ForAllNets Elichai Turkel 2020-12-08 19:40:06 +02:00
  • e04f76b800
    [NOD-1594] Add HeaderCount to GetBlockCount rpc call (#1197) Svarog 2020-12-08 19:11:35 +02:00
  • 82fa8e6831
    Abstract CheckProofOfWork as a public function and change PoW structure (#1198) Elichai Turkel 2020-12-08 17:17:30 +02:00
  • c91fcb200a
    Change go version from 1.15 to 1.14 Elichai Turkel 2020-12-08 17:08:14 +02:00
  • 1a57ee3bc4
    Update tests with new PoW Elichai Turkel 2020-12-08 15:47:21 +02:00
  • fff8819d29
    Update tools to use the new CheckProofOfWork Elichai Turkel 2020-12-08 15:46:57 +02:00
  • 8931f8769a
    Update genesis blocks Elichai Turkel 2020-12-08 15:46:26 +02:00
  • 459feae1de
    Update blockvalidator to call the new CheckProofOfWork Elichai Turkel 2020-12-08 15:46:05 +02:00
  • 4d87c09f68
    Expose CheckProofOfWork from model/pow Elichai Turkel 2020-12-08 15:43:34 +02:00
  • 331030da96
    Run the action after any edit to the PR metadata/base Elichai Turkel 2020-12-06 13:26:57 +02:00
  • 4e63246f9b [NOD-1579] Rename AcceptedTxIDs to AcceptedTransactionIDs. stasatdaglabs 2020-12-08 13:59:07 +02:00
  • 6bac238de3 [NOD-1594] Add HeaderCount to GetBlockCount rpc call Mike Zak 2020-12-08 13:22:12 +02:00
  • d04d589777 [NOD-1592] Add CSM to block validator's constructor Ori Newman 2020-12-08 10:52:02 +02:00
  • c649f737f8 Merge remote-tracking branch 'origin/v0.8.2-dev' into nod-1592-allow-missing-bodies-before-header-tips-pruning-point Ori Newman 2020-12-08 10:44:59 +02:00
  • 1fe9eec338 [NOD-1592] Allow missing bodies before header tips pruning point Ori Newman 2020-12-08 10:43:21 +02:00
  • b7ca3f4461
    [NOD-1590] Implement optimized finalityPoint calculation mechanism (#1190) Svarog 2020-12-08 10:26:39 +02:00
  • 57ceed17df [NOD-1590] Added logs to finalityPoint calculation Mike Zak 2020-12-08 08:45:43 +02:00
  • e930b5ffa6 [NOD-1590] Add finalityStore to consensus object, and TestConsensus Mike Zak 2020-12-08 08:37:22 +02:00
  • 106a76eb00 Changed expected result for two cases andrey-hash 2020-12-08 00:15:33 +02:00
  • 1f4e093264 Made better test coverage for externalapi clone and equal functions andrey-hash 2020-12-07 23:46:34 +02:00
  • d778015037 [NOD-1590] Add comments Mike Zak 2020-12-07 15:55:10 +02:00
  • 1efa861da2 [NOD-1590] Implement optimized finalityPoint calculation mechanism Mike Zak 2020-12-07 15:26:40 +02:00
  • c4586559c5 [NOD-1590] Add finality store Mike Zak 2020-12-07 09:58:56 +02:00
  • ddd6b9a60c [NOD-1590] Moved all finality logic to FinalityManager Mike Zak 2020-12-06 17:59:51 +02:00
  • 37bf261da1
    [NOD-1581] Enable fsync in database writes (#1168) Svarog 2020-12-07 14:18:33 +02:00
  • d90e18ec51
    Fix v0.8.2-dev build (#1189) Ori Newman 2020-12-07 02:39:40 -08:00
  • b8e2601f00 Fix v0.8.2-dev build Ori Newman 2020-12-07 12:11:11 +02:00
  • 053e6ae3e8 Some formatting and naming changes made andrey-hash 2020-12-06 23:34:28 +02:00
  • 89b71160f6 No changes made andrey-hash 2020-12-06 23:15:26 +02:00
  • 6bc3a109ab Added some tests and made some changes to the tests code andrey-hash 2020-12-06 23:00:37 +02:00
  • 9962527793
    Replace BlueWindow implementation to accomadate a better DAA scheme (#1179) Elichai Turkel 2020-12-06 18:42:49 +02:00
  • 78550d3639
    Adds "checkDelayedBlock" - checks if the block timeStamp is in the future. (#1183) talelbaz 2020-12-06 18:41:07 +02:00
  • 243f817694 Adds new dags for ghostdag tests. tal 2020-12-06 18:40:14 +02:00
  • bd6266834d Merge remote-tracking branch 'origin/v0.8.2-dev' into droppedDelayedBlock tal 2020-12-06 18:07:06 +02:00
  • 7e9e415cb3 Merge remote-tracking branch 'origin/v0.8.2-dev' into droppedDelayedBlock tal 2020-12-06 17:03:49 +02:00
  • 535a334ebb [#1056] Cosmetics changes: timeStamp -> timestamp . tal 2020-12-06 16:49:55 +02:00
  • 7aded41cdb [#1056] Replace "checkDelayedBlock" to "checkBlockTimeStampInIsolation". tal 2020-12-06 16:44:34 +02:00
  • ebac75ae59 [#1056] Replace "ErrDelayedBlock" to "ErrBlockIsTooMuchInTheFuture". tal 2020-12-06 16:38:47 +02:00
  • 7f899b0d09
    [NOD-1579] Improve the IBD mechanism (#1174) stasatdaglabs 2020-12-06 16:23:56 +02:00
  • 5a687b225d
    Fix review requested changes Elichai Turkel 2020-12-06 15:32:25 +02:00
  • eb326e2cd4
    Update TestBlueBlockWindow with the new DAA window Elichai Turkel 2020-12-03 20:46:59 +02:00
  • e74a46d4f8
    Refactor BlueWindow with the new DAA Elichai Turkel 2020-12-03 20:45:44 +02:00
  • 0660ce0b8b
    Add a new SizedUpHeap Elichai Turkel 2020-12-03 20:40:35 +02:00
  • 9352185130
    refactor block_heap for readability and usage Elichai Turkel 2020-12-03 20:40:14 +02:00
  • a5d1268979
    Change DifficultyAdjustmentWindowSize and TimestampDeviationTolerance from uint64 to int Elichai Turkel 2020-12-03 20:38:19 +02:00
  • 4886425caf
    [NOD-1589] Re-enable DisableDifficultyAdjustment (#1182) Svarog 2020-12-06 16:02:48 +02:00
  • 77dff6e6c0 [NOD-1579] Move a log. stasatdaglabs 2020-12-06 16:00:00 +02:00
  • e89ed28d18 Merge remote-tracking branch 'origin/v0.8.2-dev' into nod-1579-change-ibd stasatdaglabs 2020-12-06 15:56:42 +02:00
  • d342b571df [NOD-1579] Clarify a log. stasatdaglabs 2020-12-06 15:53:16 +02:00
  • 4306704f1e [NOD-1579] Simplify a log. stasatdaglabs 2020-12-06 15:48:33 +02:00
  • 557f785191 [NOD-1589] Update comment Mike Zak 2020-12-06 15:41:38 +02:00
  • bca5aa36f7 [#1056] Adds "checkDelayedBlock" - check if the block timeStamp is in future. Adds 2 new fields to blockValidator struct. Adds new Rule Error "ErrDelayedBlock" . tal 2020-12-06 15:08:43 +02:00
  • ddf4a986ad [NOD-1589] Remove simnet from TestDifficulty Mike Zak 2020-12-06 15:06:34 +02:00
  • c3902ed7a8
    Replace blue score with blue work in ghostdag (#1172) Elichai Turkel 2020-12-06 14:45:21 +02:00
  • dfa0de0168
    Add sanity blueWork check to ghostdag_test Elichai Turkel 2020-12-06 14:28:58 +02:00
  • 511adcfdf2
    Update ghostdag_test to pass blockHeaderStore to ghostdag, and test all networks genesis headers Elichai Turkel 2020-12-01 17:06:57 +02:00
  • ac35d30d59
    Change finality test to check the blueWork instead of blueScore Elichai Turkel 2020-12-01 17:04:04 +02:00
  • dba7a31c3b
    Convert tal's ghostdag2 implementation to blueWork Elichai Turkel 2020-12-01 17:03:40 +02:00
  • 351b232233
    pass block header store to ghostdagmanager Elichai Turkel 2020-12-01 17:02:56 +02:00
  • 560b9d87cd
    Serialize/Deserialize blueWork when converting to protobuf Elichai Turkel 2020-12-01 17:02:35 +02:00
  • 60c97ed77e
    Auto generate protobuf go code Elichai Turkel 2020-12-01 17:02:10 +02:00
  • 019ffd5da2
    Add blueWork to protopuf ghostdag data Elichai Turkel 2020-12-01 17:01:43 +02:00
  • 409fd69dd5
    Replace blueScore with blueWork in ghostDAG SelectedParent selection Elichai Turkel 2020-12-01 16:59:18 +02:00
  • beaa41b96a [NOD-1579] Tighten a stop condition. stasatdaglabs 2020-12-06 14:16:40 +02:00
  • 4d9f98a7b1 [NOD-1579] Added a comment. stasatdaglabs 2020-12-06 14:15:30 +02:00
  • 7a50c1521a [NOD-1579] Add a check for duplicate headers. stasatdaglabs 2020-12-06 14:11:57 +02:00
  • 9c8ada85a5 [NOD-1579] Rename insertModeBlockWithoutUpdatingVirtual to insertModeBlockBody. stasatdaglabs 2020-12-06 14:08:50 +02:00
  • 3c1ea2e67a [NOD-1589] Re-enable DisableDifficultyAdjustment Mike Zak 2020-12-06 13:44:04 +02:00
  • 3c0563079b [NOD-1579] Added a log. stasatdaglabs 2020-12-06 12:47:32 +02:00
  • 3c2cc6b67f [NOD-1579] Remove an impossible check. stasatdaglabs 2020-12-06 12:42:41 +02:00
  • 44f0149e48 [NOD-1579] Fix bad call to OnNewBlock. stasatdaglabs 2020-12-06 12:40:42 +02:00
  • 33eaf9edac
    [NOD-1548] Re-add test difficulty + Make GHOSTDAGData immutable + don't clone in store (#1178) Svarog 2020-12-06 12:35:14 +02:00
  • 1cd596df76 [NOD-1579] Remove redundant exists check from runIBDIfNotRunning. stasatdaglabs 2020-12-06 12:34:38 +02:00
  • b1c54d4b5c [NOD-1579] Move OnNewBlock out of relayBlock. stasatdaglabs 2020-12-06 12:30:56 +02:00
  • 3954c8702c [NOD-1579] Change an info log to a warning log. stasatdaglabs 2020-12-06 12:27:51 +02:00
  • c9c5808ba6 [NOD-1579] Remove a redundant check. stasatdaglabs 2020-12-06 12:20:12 +02:00
  • 133cac2e90 [NOD-1579] Fix a bad log.Debugf. stasatdaglabs 2020-12-06 12:18:55 +02:00
  • be78b07432 [NOD-1579] Return a boolean from requestBlock instead of comparing to nil. stasatdaglabs 2020-12-06 12:17:24 +02:00
  • e84413d201 [NOD-1579] Remove superfluous condition in handleRelayInvsFlow.start(). stasatdaglabs 2020-12-06 12:14:08 +02:00
  • ff9c12d270 [NOD-1579] Remove the nil stuff from GetBlockLocator. stasatdaglabs 2020-12-06 12:12:44 +02:00
  • ff0bf82cea [NOD-1548] Make GHOSTDAGData immutable + don't clone in store Mike Zak 2020-12-03 14:50:19 +02:00
  • f97b8f7580
    [NOD-1587] Add DAGParams to TestConsensus (#1181) Svarog 2020-12-06 10:57:57 +02:00
  • 05979de705
    [NOD-1586] Return routes.Disconnect (#1180) Ori Newman 2020-12-06 00:54:34 -08:00
  • 3f2e1ff884 [NOD-1587] Add DAGParams to TestConsensus Mike Zak 2020-12-06 10:51:40 +02:00
  • 828af99710 [NOD-1586] Return routes.Disconnect Ori Newman 2020-12-06 10:32:38 +02:00
  • b48a708634 Merge branch 'nod-1575-implement-clone-and-equal' of https://github.com/kaspanet/kaspad into nod-1576-make_coverage_tests_for_equal_clone_inside_model_externalapi andrey-hash 2020-12-04 11:54:48 +02:00
  • b73b269d62 [NOD-1575] Clone tx id Ori Newman 2020-12-03 19:09:11 +02:00
  • 773cb7ae27 [NOD-1548] Readd TestDifficulty Ori Newman 2020-11-18 10:16:02 +02:00
  • 32a04d1811
    Allow to configure consensus (closes #1067) Ori Newman 2020-12-03 08:30:01 -08:00
  • f9ee6345cb Move consensus default to consensus_defaults.go Ori Newman 2020-12-03 18:17:08 +02:00
  • df1ef71baf Define everywhere maxBlockParents as KType Ori Newman 2020-12-03 18:12:49 +02:00