Commit Graph

  • da16569446 [NOD-738] Rename copytopointer->pointers Ori Newman 2020-02-17 14:33:21 +02:00
  • 745581af8e [NOD-656] Show hash rate once in 10 seconds Ori Newman 2020-02-17 13:18:56 +02:00
  • 03cc69c4b6 [NOD-656] Measure hash rate in kilohashes Ori Newman 2020-02-17 13:17:53 +02:00
  • a07335d74d
    [NOD-737] Remove btc prefix from util file names (#631) Ori Newman 2020-02-17 13:11:24 +02:00
  • b59e4ec6cf Merge remote-tracking branch 'origin/v0.1.1-dev' into nod-759-merge-0-1-1-dev-into-0-1-2-dev Ori Newman 2020-02-17 12:57:46 +02:00
  • 75164ee74e [NOD-656] Log hashrate in kaspaminer Ori Newman 2020-02-16 18:03:23 +02:00
  • 5362a573aa [NOD-737] Remove btc prefix from util file names Ori Newman 2020-02-16 17:39:54 +02:00
  • 90ef470235 [NOD-694] Fix requesting blocks that will surely be orphaned during netsync. stasatdaglabs 2020-02-16 17:20:33 +02:00
  • 8ed902112f [NOD-738] Move rpcmodel helper functions to copytopointer package Ori Newman 2020-02-16 17:20:16 +02:00
  • 82c934d588 [NOD-757] Readd addrmanager tests Ori Newman 2020-02-16 16:51:23 +02:00
  • 1f1f86cd02 [NOD-754] Fix staticcheck errors Ori Newman 2020-02-16 14:39:54 +02:00
  • ccdfb9f318 [NOD-754] Remove some unused exported functions Ori Newman 2020-02-16 14:18:10 +02:00
  • 6501b6cd2c [NOD-754] Fix staticcheck errors Ori Newman 2020-02-16 13:17:18 +02:00
  • 7567cd4cb9
    [NOD-744] Wrap go routines with spawn (#626) Dan Aharoni 2020-02-13 13:10:07 +02:00
  • 30a58388c5 [NOD-744] Rename variable. Dan Aharoni 2020-02-13 13:05:29 +02:00
  • 23ea6c31d6 [NOD-744] Rename variable, use normal assignment; Dan Aharoni 2020-02-13 13:01:30 +02:00
  • 7365aa2e50 [NOD-744] Declare local var so go routine would use it Dan Aharoni 2020-02-13 09:14:00 +02:00
  • d0c24d6265 [NOD-744] Fix type and update comment. Dan Aharoni 2020-02-12 18:15:44 +02:00
  • 707bde891e [NOD-744] Declare a local scope variable so the func would use it. Dan Aharoni 2020-02-12 18:03:35 +02:00
  • 0cb5198b30 [NOD-744] Break lines so make code more readable Dan Aharoni 2020-02-12 17:45:50 +02:00
  • c210e23467 [NOD-744] Some more missing go routines Dan Aharoni 2020-02-12 17:41:12 +02:00
  • 9844911198 [NOD-747] Wrap some more go routines with spawn Dan Aharoni 2020-02-12 17:21:35 +02:00
  • b43bf07e0d [NOD-744] Wrap go routines with spawn Dan Aharoni 2020-02-12 17:00:59 +02:00
  • 271bcedc19
    [NOD-747] Change FinalityInterval to be 24 hours, isCurrent to be true if the DAG's time is less than 12 hours than the present, and change MaxInvPerMsg to be 1 << 17 (#625) v0.1.1-dev Ori Newman 2020-02-11 18:02:55 +02:00
  • ed35766d27 [NOD-747] Change FinalityInterval to be 24 hours, isCurrent to be true if the DAG's time is less than 12 hours than the present, and change MaxInvPerMsg to be 1 << 17 Ori Newman 2020-02-11 15:20:38 +02:00
  • 51ff9e2562
    [NOD-571] Cover ghostdag in tests where possible (#613) stasatdaglabs 2020-02-09 11:27:10 +02:00
  • 5b8ab63890
    [NOD-717] Fix nodes getting stuck in an infinite loop in addrManager.getAddress (#624) stasatdaglabs 2020-02-06 18:17:10 +02:00
  • 522679843a [NOD-717] Rename ResetFailedAttempts -> NotifyConnectionRequestComplete. stasatdaglabs 2020-02-06 17:55:38 +02:00
  • d9783bea00 [NOD-717] Fix nodes getting stuck in an infinite loop in addrManager.getAddress. stasatdaglabs 2020-02-06 13:23:07 +02:00
  • e45720b626 [NOD-571] Fix error messages. stasatdaglabs 2020-02-06 10:52:32 +02:00
  • 3dd7dc4496
    [NOD-727] Do not allow delayed blocks from RPC. (#623) Dan Aharoni 2020-02-05 11:14:26 +02:00
  • 0cf91986eb [NOD-727] Change error message. Dan Aharoni 2020-02-05 11:08:09 +02:00
  • b21e730922 Merge branch 'v0.1.2-dev' into nod-727-do-not-allow-delayed-blocks-from-rpc Dan Aharoni 2020-02-04 18:20:01 +02:00
  • 9b13a44d07 [NOD-727] Clarify comment; Clarify error message. Dan Aharoni 2020-02-04 18:16:27 +02:00
  • d90a08ecfa
    [NOD-722] Fix processBlockMsg case in blockHandler to send only one response to msg.reply, and rename blockHandler->messageHandler (#622) Ori Newman 2020-02-04 18:10:15 +02:00
  • 8f774f46e8 [NOD-727] Refactor sentFromRPC -> DisallowDelay Dan Aharoni 2020-02-04 17:24:17 +02:00
  • 2b8976fe29 [NOD-727] Do not allow delayed blocks from RPC. Dan Aharoni 2020-02-04 16:23:07 +02:00
  • 45dc1a3e7b
    [NOD-545] Remove headers first related logic (#621) Ori Newman 2020-02-04 14:54:42 +02:00
  • 62aa81c762 [NOD-545] Change getTopHeadersMaxHeaders to be equal to getHeadersMaxHeaders Ori Newman 2020-02-04 12:01:48 +02:00
  • 264f27deed [NOD-571] Add additional info in some error messages. stasatdaglabs 2020-02-04 10:53:04 +02:00
  • 093f0003bc [NOD-722] Fix processBlockMsg case in blockHandler to send only one response to msg.reply, and rename blockHandler->messageHandler Ori Newman 2020-02-03 17:29:07 +02:00
  • e254de1d5b [NOD-545] Fix tests Ori Newman 2020-02-03 16:49:59 +02:00
  • 4e55119141 [NOD-545] Remove headers first related logic Ori Newman 2020-02-03 16:43:22 +02:00
  • 4ffb5daa37
    [NOD-622] Fix populateTemplateFromCandidates to sort txsForBlockTemplate.txMasses and txsForBlockTemplate.txFees (#617) Ori Newman 2020-02-03 13:42:40 +02:00
  • b9138b720d
    [NOD-597] Make BlockIndex clear its dirty entries only after it successfully written them to disk (#620) Ori Newman 2020-02-03 13:39:25 +02:00
  • c9e82cb1c5 [NOD-622] Remove duplicate append of selected transactions Ori Newman 2020-02-03 13:17:59 +02:00
  • c75ec1279c [NOD-622] Sort transactions in PrepareBlockForTest Ori Newman 2020-02-03 12:50:34 +02:00
  • cfeab52125 [NOD-597] Make BlockIndex clear its dirty entries only after it successfully written them to disk Ori Newman 2020-02-03 12:44:11 +02:00
  • d8954f1339
    [NOD-615] Make bluesAnticoneSizes a map with *blockNode as a key (#619) Ori Newman 2020-02-03 12:40:39 +02:00
  • eb953286ec
    [NOD-641] Upgrade to github.com/pkg/errors v0.9.1 and use errors.As where needed (#614) Ori Newman 2020-02-03 12:38:33 +02:00
  • 41c8178ad3
    [NOD-648] Add TestProcessDelayedBlocks (#612) Ori Newman 2020-02-03 11:30:03 +02:00
  • e61a58a957 [NOD-641] Rename dErr->deserializeErr Ori Newman 2020-02-03 11:26:22 +02:00
  • d28f55e9fc [NOD-615] Make bluesAnticoneSizes a map with *blockNode as a key Ori Newman 2020-02-03 11:17:53 +02:00
  • be556ada9b
    [NOD-719] Added defers to unlocks (#618) Svarog 2020-02-02 18:27:18 +02:00
  • 1a82f2ce2d [NOD-719] Added yet another defer to yet another Unlock Mike Zak 2020-02-02 18:24:49 +02:00
  • 58868e28ff [NOD-719] Added another defer to another Unlock Mike Zak 2020-02-02 18:24:00 +02:00
  • 6c727440b3 [NOD-719] Added defers to unlocks Mike Zak 2020-02-02 18:17:45 +02:00
  • 5c2cbb23e2 [NOD-641] Rename mErr->msgErr Ori Newman 2020-02-02 16:35:52 +02:00
  • c4074ec269 [NOD-641] Rename bdRuleErr->dagRuleErr Ori Newman 2020-02-02 16:33:04 +02:00
  • 37e4739df0 [NOD-622] Fix populateTemplateFromCandidates to sort txsForBlockTemplate.txMasses and txsForBlockTemplate.txFees Ori Newman 2020-02-02 16:28:48 +02:00
  • 094dae8904 [NOD-571] Add comments to TestReindexIntervalErrors. stasatdaglabs 2020-02-02 15:44:59 +02:00
  • 025fe7c084 [NOD-571] Add substring checks to TestSplitExactErrors and TestSplitWithExponentialBiasErrors. stasatdaglabs 2020-02-02 15:39:32 +02:00
  • 3a3f6a577d [NOD-571] Add substring checks to TestSplitFractionErrors. stasatdaglabs 2020-02-02 15:34:42 +02:00
  • f08ce33cfd [NOD-571] Use PrepareBlockForTest in TestGHOSTDAGErrors. stasatdaglabs 2020-02-02 15:30:37 +02:00
  • aa74b51e6f
    [NOD-687] Remove -gcflags='-l' from all tests (#616) Ori Newman 2020-02-02 15:26:26 +02:00
  • b9d0217a7a [NOD-571] Use PrepareBlockForTest in TestBlueAnticoneSizeErrors. stasatdaglabs 2020-02-02 15:26:01 +02:00
  • f7800eb5c4 Merge remote-tracking branch 'origin/v0.1.1-dev' into v0.1.2-dev Mike Zak 2020-02-02 15:17:25 +02:00
  • 45d327427b [NOD-687] Remove -gcflags='-l' from all tests Ori Newman 2020-02-02 13:56:59 +02:00
  • 193add502f
    [NOD-716] Fix a crash in GetTopHeaders. (#615) stasatdaglabs 2020-02-02 13:51:54 +02:00
  • 9f8f1d544a [NOD-716] Fix a crash in GetTopHeaders. stasatdaglabs 2020-02-02 13:09:02 +02:00
  • c575fbb262 [NOD-641] Use errors.Is instead of testutil.AreErrorsEqual in TestNewHashFromStr Ori Newman 2020-02-02 12:32:10 +02:00
  • de7edb8f95 [NOD-641] Rename serr->scriptErr Ori Newman 2020-02-02 12:28:46 +02:00
  • cf76aa413d [NOD-641] Rename cerr->bdRuleErr Ori Newman 2020-02-02 12:26:36 +02:00
  • b4b6425c37 [NOD-641] change jerr to more appropriate name Ori Newman 2020-02-02 12:25:02 +02:00
  • 38c4d9d11a [NOD-641] e->flagsErr where necessary Ori Newman 2020-02-02 12:18:25 +02:00
  • 53d58bf2ba [NOD-641] Rename derr->dbErr Ori Newman 2020-02-02 12:14:36 +02:00
  • 691ef5b9ae [NOD-641] Rename rErr->ruleErr Ori Newman 2020-02-02 12:13:33 +02:00
  • 55b9c0a083 [NOD-641] Rename HaveBlock->IsKnownBlock, BlockExists->IsInDAG Ori Newman 2020-01-30 19:16:07 +02:00
  • 3e01904a73 [NOD-641] Use errors.As where needed Ori Newman 2020-01-30 18:43:20 +02:00
  • 2f76b24f88 [NOD-571] Add TestGHOSTDAGErrors. stasatdaglabs 2020-01-30 17:23:42 +02:00
  • a7fbba617f [NOD-641] Fix errors.As for pointer types Ori Newman 2020-01-30 17:11:16 +02:00
  • 14c3a73324 [NOD-641] Use errors.As for error type checking Ori Newman 2020-01-30 16:36:37 +02:00
  • cbeffbf792 [NOD-641] Fix find and replace error Ori Newman 2020-01-30 16:21:24 +02:00
  • 2083cec82a [NOD-641] Upgrade to github.com/pkg/errors v0.9.1 and use errors.As where needed Ori Newman 2020-01-30 16:17:43 +02:00
  • c4cc79f4fc [NOD-571] Remove unnecessary error from setTreeNode. stasatdaglabs 2020-01-30 16:11:49 +02:00
  • 0b6f157b78 [NOD-571] Cover blueAnticoneSize. stasatdaglabs 2020-01-30 14:06:53 +02:00
  • e289fc9b1b [NOD-648] Add comment Ori Newman 2020-01-30 14:01:41 +02:00
  • 133c6d803d [NOD-648] Rename dag.HaveBlock->dag.IsKnownBlock, dag.BlockExists->dag.IsInDAG Ori Newman 2020-01-30 14:00:01 +02:00
  • 204a9e4948 [NOD-648] Use fakeTimeSource instead of time.Sleep Ori Newman 2020-01-30 13:56:24 +02:00
  • 56382ab0ef Merge remote-tracking branch 'origin/v0.1.2-dev' into nod-571-coverage stasatdaglabs 2020-01-30 13:51:31 +02:00
  • 79c18b7a1a [NOD-648] Remove redundant import Ori Newman 2020-01-30 13:36:34 +02:00
  • 7c9e41bc3f [NOD-648] Add one second to secondsUntilDelayedBlockIsValid to make sure the delayedBlock timestamp will be valid, and add comments Ori Newman 2020-01-30 13:26:25 +02:00
  • 91bba12d59 Merge remote-tracking branch 'origin/v0.1.2-dev' into nod-648-add-TestProcessDelayedBlocks Ori Newman 2020-01-30 13:08:38 +02:00
  • b5180dceab [NOD-648] Add TestProcessDelayedBlocks Ori Newman 2020-01-29 19:24:32 +02:00
  • 44c55900f8
    [NOD-715] Replace testDbRoot with os.TempDir() (#611) Ori Newman 2020-01-30 12:54:15 +02:00
  • ba1fd2b558 [NOD-715] Replace testDbRoot with os.TempDir() Ori Newman 2020-01-30 11:55:49 +02:00
  • 48ecdf36fa [NOD-571] Cover reachability String() methods. stasatdaglabs 2020-01-30 11:50:33 +02:00
  • 0e35e26f59 [NOD-571] Cover reindexInterval. stasatdaglabs 2020-01-30 11:28:16 +02:00
  • e14c72a7f6 [NOD-571] Cover reachabilityInterval split methods. stasatdaglabs 2020-01-30 10:54:16 +02:00
  • 4c0ea78026
    [NOD-586] Remove subTreeSize from reachabilityTreeNode (#610) Ori Newman 2020-01-30 10:39:53 +02:00