Commit Graph

  • 16bbcdc81a [NOD-862] Fix grammar in comment. stasatdaglabs 2020-03-30 11:03:00 +03:00
  • 3c8e5ce82a [NOD-867] Remove TODOs. stasatdaglabs 2020-03-30 10:39:12 +03:00
  • e3b95375ee Merge remote-tracking branch 'origin/nod-862-dbaccess-blocks' into nod-867-migrate-dagio stasatdaglabs 2020-03-30 10:37:12 +03:00
  • 06c1068753 Merge remote-tracking branch 'origin/nod-805-database-redesign' into nod-867-migrate-dagio stasatdaglabs 2020-03-30 10:35:03 +03:00
  • 187a88ece2 [NOD-862] Extract dbStoreBlock to a separate function. stasatdaglabs 2020-03-30 10:27:50 +03:00
  • e5eb933d4e [NOD-862] Add defer to RollbackUnlessClosed after NewTx(). stasatdaglabs 2020-03-30 10:16:14 +03:00
  • 591b4a1427 Merge remote-tracking branch 'origin/nod-805-database-redesign' into nod-862-dbaccess-blocks stasatdaglabs 2020-03-30 10:15:18 +03:00
  • 8560f57c6a
    [NOD-888] Add RollbackUnlessClosed to Context (#676) stasatdaglabs 2020-03-30 10:12:16 +03:00
  • ad568374a2 [NOD-888] Fix copy+paste error. stasatdaglabs 2020-03-30 10:04:59 +03:00
  • 4928a43229 [NOD-888] Add RollbackUnlessClosed to Context. stasatdaglabs 2020-03-30 10:04:38 +03:00
  • 1775bf919c [NOD-862] Use daghash.Hash in dbaccess. stasatdaglabs 2020-03-30 10:00:07 +03:00
  • 2dc9777bfd [NOD-862] Use BlockDAG.BlockByHash in p2p and rpc. stasatdaglabs 2020-03-30 09:47:36 +03:00
  • 3ad07c2b45 [NOD-862] Bring back dbFetchBlockByHash. stasatdaglabs 2020-03-30 09:41:22 +03:00
  • caff28431a [NOD-862] Add prefix to the temp dir in DAGSetup. stasatdaglabs 2020-03-30 09:23:29 +03:00
  • 262c06d2b4 [NOD-862] Remove TODO. stasatdaglabs 2020-03-30 09:21:12 +03:00
  • 66b71b6420 [NOD-862] Merge flushToDBWithContext and flushToDB. stasatdaglabs 2020-03-30 09:19:16 +03:00
  • 2e0847b4f0 Merge remote-tracking branch 'origin/nod-805-database-redesign' into nod-862-dbaccess-blocks stasatdaglabs 2020-03-30 09:17:12 +03:00
  • 05286036a2 [NOD-887] Fix the comment above BlockIndexCursorFrom. stasatdaglabs 2020-03-30 09:11:46 +03:00
  • 666b0d8985 Merge remote-tracking branch 'origin/nod-805-database-redesign' into nod-867-migrate-dagio stasatdaglabs 2020-03-30 09:09:31 +03:00
  • b8ad083795
    [NOD-887] Add a couple of QoL features to Cursor (#674) stasatdaglabs 2020-03-29 18:19:55 +03:00
  • 13444bfd82 [NOD-887] Make Cursor.Key not return the entire key path. stasatdaglabs 2020-03-29 17:16:45 +03:00
  • f3e7a02c56 [NOD-887] Fix merge error. stasatdaglabs 2020-03-29 17:28:26 +03:00
  • d2ddc4b7fb [NOD-887] Changed First to not return an error. stasatdaglabs 2020-03-29 16:55:17 +03:00
  • 05aae7c530 [NOD-865] Move subnetwork data db operations to dbaccess Ori Newman 2020-03-29 17:23:43 +03:00
  • d439c0f689 [NOD-867] Make Cursor.Key not return the entire key path. stasatdaglabs 2020-03-29 17:16:45 +03:00
  • bec0950943 [NOD-857] Add generalized profiler package and use it everwhere Mike Zak 2020-03-29 17:01:16 +03:00
  • eea1ac8e3b [NOD-867] Changed First to not return an error. stasatdaglabs 2020-03-29 16:55:17 +03:00
  • 6153156815 Merge remote-tracking branch 'origin/nod-805-database-redesign' into nod-865-move-misc-db-logic-to-db-access Ori Newman 2020-03-29 15:17:52 +03:00
  • 8d560011b3 [NOD-867] Add missing error check. stasatdaglabs 2020-03-29 16:37:36 +03:00
  • e577bad357 [NOD-867] Migrate the database's UTXO set to dbaccess. stasatdaglabs 2020-03-29 16:16:10 +03:00
  • 2fda675c2d [NOD-867] Remove an unused function. stasatdaglabs 2020-03-29 15:43:40 +03:00
  • 8d3eb690c0 [NOD-867] Fix a comment. stasatdaglabs 2020-03-29 15:42:03 +03:00
  • 4b7be80ce2 [NOD-867] Move localSubnetworkID into dagState. stasatdaglabs 2020-03-29 15:41:34 +03:00
  • 67255f9e47 Merge remote-tracking branch 'origin/nod-862-dbaccess-blocks' into nod-867-migrate-dagio stasatdaglabs 2020-03-29 15:26:48 +03:00
  • e05c2d90ec [NOD-862] Fix merge errors. stasatdaglabs 2020-03-29 15:19:35 +03:00
  • baabe8a799 Merge remote-tracking branch 'origin/nod-805-database-redesign' into nod-862-dbaccess-blocks stasatdaglabs 2020-03-29 15:16:34 +03:00
  • e4132e21d0 [NOD-865] Move UTXO diff data db operations to dbaccess Ori Newman 2020-03-29 15:15:13 +03:00
  • e7e40bf46b
    [NOD-828] Reimplement FFLDB (#663) stasatdaglabs 2020-03-29 15:13:03 +03:00
  • ce636fb031 [NOD-867] Remove utxoSetVersionKeyName. stasatdaglabs 2020-03-29 15:03:34 +03:00
  • c9a922dc9e [NOD-867] Migrate DAG state to dbaccess. stasatdaglabs 2020-03-29 15:00:46 +03:00
  • 8eb8485f4c [NOD-867] Fix wrong key in StoreIndexBucket. stasatdaglabs 2020-03-29 14:45:18 +03:00
  • df1fd405dc [NOD-865] Move reachability data db operations to dbaccess Ori Newman 2020-03-29 14:40:27 +03:00
  • 82f50d99f5 [NOD-867] Remove blockIndexBucket from dagio. stasatdaglabs 2020-03-29 14:29:30 +03:00
  • 1a38550fdd Update to version 0.3.0 Mike Zak 2020-03-29 14:15:17 +03:00
  • 6e7c84a331 [NOD-862] Fix TestProcessDelayedBlocks not closing the database properly. stasatdaglabs 2020-03-29 13:52:27 +03:00
  • 1c036bfda0 [NOD-862] Fix DAGSetup using bad temp directories. stasatdaglabs 2020-03-29 13:42:42 +03:00
  • 7f407840a4 [NOD-862] Fix merge errors. stasatdaglabs 2020-03-29 13:32:53 +03:00
  • e91726408a Merge remote-tracking branch 'origin/nod-828-dbaccess-2' into nod-862-dbaccess-blocks stasatdaglabs 2020-03-29 13:25:53 +03:00
  • 3e7ebb5a84
    [NOD-861] Get rid of dbtool/fetchblockregion.go. (#667) stasatdaglabs 2020-03-29 12:47:13 +03:00
  • 94a3d3c5cf [NOD-828] Make RetrieveFromStore return whether the data was found. stasatdaglabs 2020-03-29 12:11:05 +03:00
  • 7f690d3d57 [NOD-828] Name the output parameters of all Get functions. stasatdaglabs 2020-03-29 11:48:16 +03:00
  • 0a7d2a835d [NOD-828] Make Get/Fetch calls return a boolean to indicate whether the requested item was found. stasatdaglabs 2020-03-29 11:27:47 +03:00
  • 3d5ed7d189 [NOD-828] Rename db to accessor in Context. stasatdaglabs 2020-03-29 11:18:04 +03:00
  • d26d54afe6 [NOD-828] Add First to Cursor. stasatdaglabs 2020-03-29 11:15:38 +03:00
  • f8bf5950dc Merge remote-tracking branch 'origin/v0.2.0-dev' into nod-865-move-misc-db-logic-to-db-access Ori Newman 2020-03-29 10:20:46 +03:00
  • af9fb8ca42 [NOD-828] Add Seek to Cursor. stasatdaglabs 2020-03-29 10:15:09 +03:00
  • 4bca7342d3
    [NOD-883] Fix dockerfile in kaspaminer + set real version for go-libsecp256k1 (#673) v0.2.0-rc2 v0.2.0-dev Svarog 2020-03-26 17:50:09 +02:00
  • 07c968f87c [NOD-883] Fix dockerfile in kaspaminer + set real version for go-libsecp256k1 Mike Zak 2020-03-26 17:29:54 +02:00
  • 76ba6266a5 [NOD-865] Move fee data db operations to dbaccess Ori Newman 2020-03-26 17:17:08 +02:00
  • f80908fb4e
    [NOD-876] Replace ecc with go-secp256k1 for public keys (#670) v0.2.0-rc1 Elichai Turkel 2020-03-26 17:03:39 +02:00
  • ccf0df1e82
    Replace ecc.Multiset with secp256k1.MultiSet Elichai Turkel 2020-03-26 15:58:22 +02:00
  • 52cb31a6a1
    Replace ecc with go-secp256k1 in util and cmd Elichai Turkel 2020-03-25 17:25:25 +02:00
  • 4745da6626
    Replace ecc with go-secp256k1 in txscript Elichai Turkel 2020-03-25 17:21:15 +02:00
  • fa2a161a1b [NOD-828] Add a comment on top of flatFileLocationSerializedSize. stasatdaglabs 2020-03-26 16:44:46 +02:00
  • 87eb422450 [NOD-828] Fix a couple of places that erroneously referenced blocks. stasatdaglabs 2020-03-26 16:42:22 +02:00
  • ed648e9f00 [NOD-862] Add comments to StoreBlockIndex and BlockIndexCursor. stasatdaglabs 2020-03-26 16:40:52 +02:00
  • 76709d37ff Merge remote-tracking branch 'origin/nod-828-dbaccess-2' into nod-862-dbaccess-blocks stasatdaglabs 2020-03-26 15:18:30 +02:00
  • f66f71f29d [NOD-862] Fix TestAcceptanceIndexRecover. stasatdaglabs 2020-03-26 14:21:36 +02:00
  • 63cf4073a7 [NOD-862] Fix maybeAcceptBlock not checking block existence. stasatdaglabs 2020-03-26 14:16:54 +02:00
  • e000e10738
    [NOD-880] Remove CGO_ENABLED=0 from Dockerfile. (#671) stasatdaglabs 2020-03-26 14:02:57 +02:00
  • 4d04410ac2 [NOD-880] Remove CGO_ENABLED=0 from Dockerfile. stasatdaglabs 2020-03-26 13:51:21 +02:00
  • da12093f9f [NOD-862] Fix errors. stasatdaglabs 2020-03-26 13:49:38 +02:00
  • b52d0a8e43 [NOD-862] Pass byte slices to dbaccess instead of objects. stasatdaglabs 2020-03-26 13:26:12 +02:00
  • d83862f36c
    [NOD-855] Save ECMH for block utxo and not diff utxo (#669) Ori Newman 2020-03-26 13:06:12 +02:00
  • ab6b1c5acb [NOD-855] Use fmt.Sprintf when creating internalRPCError Ori Newman 2020-03-26 12:55:00 +02:00
  • 8f14a0e705 [NOD-855] Remove redundant copy of txIn.PreviousOutpoint Ori Newman 2020-03-26 12:50:44 +02:00
  • 5f4ee3b7ae [NOD-855] Use FindAcceptanceData to find a specific block acceptance data Ori Newman 2020-03-26 12:49:10 +02:00
  • 61086d4bda [NOD-855] Change name and comments Ori Newman 2020-03-26 12:42:37 +02:00
  • 89914c0fad [NOD-855] Manually add a chained transaction to a block in TestChainedTransactions Ori Newman 2020-03-26 11:50:33 +02:00
  • 47018643b6 [NOD-828] Add Delete to DataAccessor. stasatdaglabs 2020-03-26 11:37:02 +02:00
  • 183db45e50 [NOD-855] When calculating multiset, replace the unaccepted blue score of selected parent transaction with the block blue score Ori Newman 2020-03-26 11:27:52 +02:00
  • 1646d5f054 [NOD-855] Do not use hash when adding entries to multiset Ori Newman 2020-03-26 10:50:44 +02:00
  • 5d29435f91 [NOD-855] Pass isCoinbase to NewUTXOEntry Ori Newman 2020-03-25 18:20:26 +02:00
  • 271680feca [NOD-855] Hash utxo before adding it to multiset Ori Newman 2020-03-25 18:10:35 +02:00
  • 28b6e4c9ca [NOD-862] Fix block index key. stasatdaglabs 2020-03-25 17:59:30 +02:00
  • 1792e4b12f [NOD-862] Iterate over the new block index in dagio. stasatdaglabs 2020-03-25 17:54:01 +02:00
  • 8e1cdb1a39 [NOD-855] Use UnacceptedBlueScore when adding current block transactions to multiset Ori Newman 2020-03-25 17:47:31 +02:00
  • 6ed0c7aecb [NOD-855] Fix tests Ori Newman 2020-03-25 17:26:33 +02:00
  • 42b0307381 [NOD-855] clear new entries from multisetstore on saveChangesFromBlock Ori Newman 2020-03-25 17:19:25 +02:00
  • a3e018ca02 [NOD-855] Remove multiset from UTXO diff tests Ori Newman 2020-03-25 17:17:58 +02:00
  • 20dbf0665d [NOD-862] Move Cursor() into the DataAccessor interface. stasatdaglabs 2020-03-25 16:39:27 +02:00
  • 48986731aa [NOD-862] Move Cursor() into the DataAccessor interface. stasatdaglabs 2020-03-25 16:39:27 +02:00
  • 3303431369 [NOD-855] Create multisetBucketName on startup Ori Newman 2020-03-25 16:20:11 +02:00
  • 1020402b34
    [NOD-869] Close panicHandlerDone instead of sending an empty struct + use time.After instead of time.Tick (#668) Svarog 2020-03-25 16:14:08 +02:00
  • 0993d55af7 [NOD-862] Fix remaining database opening problems in tests. stasatdaglabs 2020-03-25 16:09:46 +02:00
  • 35099b73e2 [NOD-862] Fix bad make call. stasatdaglabs 2020-03-25 16:05:39 +02:00
  • ec8d83e8d9 [NOD-862] Fix tests failing on DAGSetup. stasatdaglabs 2020-03-25 15:44:04 +02:00
  • 0ed0ea4234 [NOD-862] Use database transactions where appropriate. stasatdaglabs 2020-03-25 15:12:19 +02:00
  • 6969b3e63a [NOD-862] Implement storing index blocks. stasatdaglabs 2020-03-25 15:06:47 +02:00
  • 4acb181a37 Revert "[NOD-828] Remove data length from flat file data format." stasatdaglabs 2020-03-25 14:37:57 +02:00