Commit Graph

  • e96a5fd233 Merge remote-tracking branch 'origin/v0.1.2-dev' into nod-778-optimize-restore-utxo Mike Zak 2020-03-08 11:20:30 +02:00
  • a84ee1b26a [NOD-778] Sorted TestUTXODiffRules tests according to spreadsheet Mike Zak 2020-03-08 09:45:32 +02:00
  • 0bb5eec999 [NOD-778] Deleted temporary prints Mike Zak 2020-03-05 16:29:07 +02:00
  • 606cd668ff
    [NOD-810] Fix error text in lookupParentNodes (#651) Svarog 2020-03-05 15:49:36 +02:00
  • fa6fcbe7fa [NOD-810] Fix error text in lookupParentNodes Ori Newman 2020-03-05 15:44:10 +02:00
  • 807b9e0fe8 [NOD-778] Fix WithDiffInPlace to pass all tests Mike Zak 2020-03-05 15:42:15 +02:00
  • 6f11f3f861 [NOD-806] Fix go vet errors Ori Newman 2020-03-05 15:21:24 +02:00
  • 86dcc64ad3 [NOD-806] Use caller subsystem when logging panics Ori Newman 2020-03-05 14:32:51 +02:00
  • e4e25cd0ce [NOD-806] Remove redundant spawn checks from waitgroup_test.go Ori Newman 2020-03-05 14:26:05 +02:00
  • 1ab30d1d32 [NOD-806] Cancel Logger interface Ori Newman 2020-03-05 14:19:08 +02:00
  • 4d18c67906 [NOD-806] Refactor HandlePanic Ori Newman 2020-03-05 13:02:11 +02:00
  • 4871432d97 [NOD-806] Fix disabled log at rpcclient Ori Newman 2020-03-05 12:45:29 +02:00
  • dd537f5143
    [NOD-808] Use syndtr/goleveldb instead of btcsuite/goleveldb. (#649) Ori Newman 2020-03-05 12:26:48 +02:00
  • d70d34bc24 [NOD-806] Convert non-kaspad applications to use the new spawn Ori Newman 2020-03-05 12:23:59 +02:00
  • f30e8b7ba2 [NOD-808] Use syndtr/goleveldb instead of btcsuite/goleveldb. stasatdaglabs 2020-03-05 12:18:18 +02:00
  • 4e0cd3178b [NOD-806] After panic, gracefully stop logs, and then exit immediately Ori Newman 2020-03-05 11:25:48 +02:00
  • 37efa084de [NOD-778] WithDiff: Fix faulty logic that allows updates to blue scores Mike Zak 2020-03-04 17:48:54 +02:00
  • e82db803b6 [NOD-778] diffFrom: Disallow situations where utxo both in d.toRemove and other.toRemove with different blue scores and no corresponding utxo in d.toAdd Mike Zak 2020-03-04 17:47:49 +02:00
  • 4e6f3aaeb1 [NOD-778] Fix expected value in 'first in toRemove in this, second in toRemove in other' Mike Zak 2020-03-04 17:46:27 +02:00
  • 8740e41177 [NOD-778] diffFrom: disallow utxos both in d.toAdd, other.toAdd, and only one of d.toRemove and other.toRemove Mike Zak 2020-03-04 15:50:21 +02:00
  • 55a153da9b [NOD-778] Update error messages when diffFrom(withDiffResult) fails in TestUTXODiffRules Mike Zak 2020-03-04 11:27:56 +02:00
  • 3502c512ca [NOD-778] Fixed in WithDiffInPlace Mike Zak 2020-03-04 10:47:57 +02:00
  • 4e69b5bb28 [NOD-778] Fix test-case 'first in toAdd in this, second in toRemove in this and toAdd in other' Mike Zak 2020-03-04 10:46:03 +02:00
  • d8f708d27d [NOD-778] Add tests for all cases possible in TestUTXODiffRules Mike Zak 2020-03-03 15:59:46 +02:00
  • 279b81ce22 [NOD-778] Also test WithDiffInPlace in TestUTXODiffRules Mike Zak 2020-03-03 11:27:53 +02:00
  • a1c631be62
    [NOD-798] Disconnect from a peer if a block received from it gets rejected (#648) v0.1.2-alpha3 stasatdaglabs 2020-03-03 09:47:23 +02:00
  • 2d5b7fb18e [NOD-798] Make a comment less ambiguous. stasatdaglabs 2020-03-02 14:03:05 +02:00
  • 991a85fd7e [NOD-798] Disconnect from a peer if its block gets rejected. stasatdaglabs 2020-03-02 13:51:51 +02:00
  • 707a728656
    [NOD-552] Add NormalizeRPCServerAddress and use it where needed (#643) Ori Newman 2020-03-01 16:37:26 +02:00
  • 5164e0ff33 [NOD-552] Use longer lines for a comment Ori Newman 2020-03-01 16:32:56 +02:00
  • 3d0324ea92 [NOD-799] Call goroutineIDAndCallerToMutex() only if needed Ori Newman 2020-03-01 15:57:13 +02:00
  • 70e4647059 [NOD-799] Add comments to MutexWithLog and RWMutexWithLog methods Ori Newman 2020-03-01 14:07:12 +02:00
  • 107ca7424c [NOD-799] Switch all mutexes except the log mutexes to use RWMutexWithLog and MutexWithLog Ori Newman 2020-03-01 13:57:01 +02:00
  • 0a99aa46df [NOD-799] Create MutexWithLog and RWMutexWithLog locks Ori Newman 2020-03-01 13:56:13 +02:00
  • e3c35e81ad [NOD-778] Add double dag.restoreUTXO to benchmark, to remove time for hard-disk loading Mike Zak 2020-03-01 12:30:35 +02:00
  • 3e573e8a6e [NOD-552] Make NormalizeAddress return an error for an invalid address Ori Newman 2020-03-01 11:36:06 +02:00
  • 80b5631a48
    [NOD-726] Only print "no sync peer" message when not current (#646) stasatdaglabs 2020-02-27 17:38:40 +02:00
  • 2373965551
    [NOD-576] Rename NextHashes to ChildHashes in GetBlock/GetBlockHeaders rpc call (#645) Ori Newman 2020-02-27 17:34:38 +02:00
  • 65cbb6655b
    [NOD-661] Change BCDB subsystem tag (for logs) to KSDB (#644) Ori Newman 2020-02-27 17:30:08 +02:00
  • cdd96d0670
    [NOD-664] Remove version from everything inside kaspad/cmd - use kaspad version instead (#642) Ori Newman 2020-02-27 13:26:22 +02:00
  • ad04bbde83
    [NOD-782] Make sure errors.As gets parameter that implements error interface (#641) Dan Aharoni 2020-02-27 12:27:38 +02:00
  • 040ad8c13b [NOD-726] Shorten duration in which "no sync peer" messages would not print. stasatdaglabs 2020-02-27 10:42:19 +02:00
  • 83b9e7f1bd [NOD-726] Only print "no sync peer" message when not current. stasatdaglabs 2020-02-26 16:56:33 +02:00
  • a948b03b81 [NOD-576] Fix typo Ori Newman 2020-02-26 16:38:08 +02:00
  • dadcd95f78 [NOD-576] Rename NextHashes to ChildHashes in GetBlock/GetBlockHeaders rpc call Ori Newman 2020-02-26 16:23:44 +02:00
  • a9fde61d45 [NOD-664] Fix broken import Ori Newman 2020-02-26 16:10:46 +02:00
  • 53a264d149 [NOD-661] Change BCDB subsystem tag (for logs) to KSDB Ori Newman 2020-02-26 15:30:43 +02:00
  • 729e214dea [NOD-552] Add NormalizeRPCServerAddress and use it where needed Ori Newman 2020-02-26 13:49:15 +02:00
  • 1b25fa7cf8 [NOD-664] Remove version from everything inside kaspad/cmd - use kaspad version instead Ori Newman 2020-02-26 12:29:33 +02:00
  • 52608c09b5 [NOD-778] Add comment to WithDiffInPlace Mike Zak 2020-02-25 09:44:02 +02:00
  • 51c13f94dc [NOD-778] Fix bug in WithDiffInPlace Mike Zak 2020-02-24 18:47:58 +02:00
  • 9baf88f1a6 Merge remote-tracking branch 'origin/v0.1.2-dev' into nod-778-optimize-restore-utxo Mike Zak 2020-02-24 16:22:58 +02:00
  • 53dfd3bdde [NOD-782] Pass pointer to errors.As Dan Aharoni 2020-02-24 12:53:32 +02:00
  • 1d710d5409 [NOD-782] Make sure errors.As gets parameter that implements error interface. Dan Aharoni 2020-02-24 12:31:43 +02:00
  • 5374d95416
    [NOD-656] Log hashrate in kaspaminer (#632) v0.1.2-alpha2 Ori Newman 2020-02-24 11:59:02 +02:00
  • 6b7c4a7f4d Merge remote-tracking branch 'origin/v0.1.2-dev' into nod-778-optimize-restore-utxo Mike Zak 2020-02-24 11:30:41 +02:00
  • de9aa39cc5
    [NOD-721] Add defers (#638) Ori Newman 2020-02-24 09:19:44 +02:00
  • 98987f4a8f
    [NOD-603] Update validateParents to use reachability (#640) Ori Newman 2020-02-24 08:59:12 +02:00
  • 81e91bf3c2 [NOD-721] Remove redundant check if block parent is a tip Ori Newman 2020-02-23 17:11:10 +02:00
  • 1baed07c11 [NOD-721] Fixed comments Ori Newman 2020-02-23 15:17:08 +02:00
  • 29a870dd3d [NOD-721] Rename filterDataWithLock->FilterData Ori Newman 2020-02-23 15:16:26 +02:00
  • d0069761f9 [NOD-721] Rename existsUnspentOutpoint->existsUnspentOutpointNoLock, existsUnspentOutpointWithLock->existsUnspentOutpoint Ori Newman 2020-02-23 15:15:09 +02:00
  • cc4c9c96cc [NOD-721] Get rid of submitOld, and break handleGetBlockTemplateLongPoll to smaller functions Ori Newman 2020-02-23 13:13:44 +02:00
  • 1a52cab54f Merge remote-tracking branch 'origin/v0.1.2-dev' into nod-603-update-validate-parents-to-use-reachability Ori Newman 2020-02-23 11:29:45 +02:00
  • f0f91cc982 [NOD-603] Break a long line Ori Newman 2020-02-23 11:03:47 +02:00
  • 58fa006599 [NOD-778] Add WithDiffInPlace Mike Zak 2020-02-20 17:53:36 +02:00
  • 9745f31b69
    [NOD-693] Update link to license (#639) v0.1.2-alpha1 Ori Newman 2020-02-20 17:12:53 +02:00
  • ee08531a52
    [NOD-610] Rename newSet->newBlockSet and setFromSlice->blockSetFromSlice (#635) Ori Newman 2020-02-20 16:19:28 +02:00
  • 82d9140f36 [NOD-603] Update validateParents to use reachability Ori Newman 2020-02-20 15:21:04 +02:00
  • 3a5a326fbc [NOD-721] Remove redundant assignments Ori Newman 2020-02-20 14:46:19 +02:00
  • a6a8630790 [NOD-721] Remove redundant assignments Ori Newman 2020-02-20 14:44:31 +02:00
  • 2a0faa0025 [NOD-721] Remove redundant assignments Ori Newman 2020-02-20 14:34:06 +02:00
  • cda06d199a [NOD-693] Update link to license Ori Newman 2020-02-20 14:22:58 +02:00
  • 51630d227e [NOD-721] De-anonymize some anonymous functions Ori Newman 2020-02-19 17:21:36 +02:00
  • 93b6f051ce [NOD-721] Fix access to wsc.filterData without a lock Ori Newman 2020-02-19 17:19:37 +02:00
  • dceb085d90 Merge remote-tracking branch 'origin/v0.1.2-dev' into nod-721-add-defers Ori Newman 2020-02-19 13:59:10 +02:00
  • 87f1dce180 [NOD-721] Defer .Close() Ori Newman 2020-02-19 13:56:16 +02:00
  • debf62525a [NOD-721] Defer unlocks Ori Newman 2020-02-19 13:43:16 +02:00
  • 61baf7b260
    [NOD-769] Add a log for when a reachability reindex occurs (#637) stasatdaglabs 2020-02-19 13:39:45 +02:00
  • cb68ad568b [NOD-721] Add filterDataWithLock function Ori Newman 2020-02-19 13:13:38 +02:00
  • 42efaeba38 [NOD-721] Defer unlocks Ori Newman 2020-02-19 12:59:17 +02:00
  • ca82ec94da [NOD-769] Brought back someIP. stasatdaglabs 2020-02-19 12:35:27 +02:00
  • 313fe5bc6d Merge remote-tracking branch 'origin/v0.1.2-dev' into nod-769-reachability-disappearing stasatdaglabs 2020-02-19 11:39:58 +02:00
  • 21100afb6c [NOD-721] Add functions with locks to rpcmodel Ori Newman 2020-02-19 11:14:23 +02:00
  • e07c3c10cb [NOD-721] Defer unlocks Ori Newman 2020-02-18 18:32:56 +02:00
  • 650e4f735e
    [NOD-757] Readd addrmanager tests (#628) Ori Newman 2020-02-18 18:12:19 +02:00
  • 550b12b041
    [NOD-772] Fix a bug where we ignore the return value of forAllOutboundPeers. (#636) Dan Aharoni 2020-02-18 18:02:15 +02:00
  • a4bb070722
    [NOD-754] Fix staticcheck errors (#627) Ori Newman 2020-02-18 16:56:38 +02:00
  • f7315eabff [NOD-772] Fix bug where we ignored the return value. Dan Aharoni 2020-02-18 14:51:40 +02:00
  • 2497204fd8 [NOD-656] Create logHashRateInterval constant Ori Newman 2020-02-18 14:22:39 +02:00
  • 687765c2c5 [NOD-656] Put hash rate logic in a separate function Ori Newman 2020-02-18 14:19:54 +02:00
  • 30fe0c279b
    [NOD-738] Move rpcmodel helper functions to pointers package (#629) Ori Newman 2020-02-18 14:06:34 +02:00
  • ae84aa077c [NOD-610] Rename newSet->newBlockSet and setFromSlice->blockSetFromSlice Ori Newman 2020-02-18 14:02:49 +02:00
  • 66ab5a7d58 [NOD-769] Add a log for when a reachability reindex occurs. stasatdaglabs 2020-02-18 13:16:46 +02:00
  • e405dd5981
    [NOD-694] Fix requesting blocks that will surely be orphaned during netsync. (#630) stasatdaglabs 2020-02-18 12:12:34 +02:00
  • 243b4b8021
    [NOD-765] Fix database corruption after restart in reachabilitystore and utxodiffstore. (#634) stasatdaglabs 2020-02-18 12:04:50 +02:00
  • 23180046ae [NOD-765] Fix database corruption after restart in reachabilitystore and utxodiffstore. stasatdaglabs 2020-02-18 11:29:46 +02:00
  • dd4c93e1ef
    [NOD-759] Merge v0.1.1-dev into v0.1.2-dev (#633) Ori Newman 2020-02-18 11:02:25 +02:00
  • 83fd7d86b2 [NOD-754] Wrap outside errors with custom message Ori Newman 2020-02-17 16:01:08 +02:00
  • 7b51c6eeb9 [NOD-754] Don't panic if out/in close fails Ori Newman 2020-02-17 15:38:23 +02:00