Commit Graph

  • 1c2624aac7 [NOD-828] Fix revert errors. stasatdaglabs 2020-03-25 14:37:01 +02:00
  • 524127a505 Revert "[NOD-828] Make bucket a type alias instead of a struct." stasatdaglabs 2020-03-25 14:35:52 +02:00
  • 832bebbec5 [NOD-855] Don't remove coinbase inputs from multiset Ori Newman 2020-03-25 13:30:07 +02:00
  • d7a2a3ef27 [NOD-855] Fix to fetch multiset of selected parent Ori Newman 2020-03-25 13:26:08 +02:00
  • 1ee8d52a68 [NOD-855] Remove multiset data from UTXO diffs Ori Newman 2020-03-25 12:55:26 +02:00
  • 19dcd29567 [NOD-828] Implement toDBBlockNode and fromDBBlockNode. stasatdaglabs 2020-03-25 13:10:03 +02:00
  • 3754c1f639 [NOD-855] Remove UpdateExtraNonce method Ori Newman 2020-03-25 12:52:11 +02:00
  • 58d390c41a [NOD-828] Move the explanation about batches and snapshots to the LevelDBTransaction struct. stasatdaglabs 2020-03-25 12:40:49 +02:00
  • 5e6020043b [NOD-828] Implement a dbaccess.BlockNode struct. stasatdaglabs 2020-03-25 12:34:00 +02:00
  • ec8faec334 [NOD-855] Save ECMH for each block UTXO Ori Newman 2020-03-25 12:28:18 +02:00
  • bc6ce6ed53 Update version to v0.2.0 Mike Zak 2020-03-25 11:51:14 +02:00
  • be8775ed18 [NOD-869] Close panicHandlerDone instead of sending an empty struct + use time.After instead of time.Tick Mike Zak 2020-03-25 11:49:53 +02:00
  • b292a5a6a0 Merge remote-tracking branch 'origin/nod-828-dbaccess-2' into nod-862-dbaccess-blocks stasatdaglabs 2020-03-25 11:21:49 +02:00
  • 6ffce21042 [NOD-828] Handle nil in FetchBlock. stasatdaglabs 2020-03-25 11:16:46 +02:00
  • 73038d01b8 [NOD-828] Remove redundant whitespace. stasatdaglabs 2020-03-25 11:13:26 +02:00
  • 4771bf3810 [NOD-828] Remove an irrelevant comment. stasatdaglabs 2020-03-25 11:07:04 +02:00
  • 3efe773e93 [NOD-828] Return errors from rollback(). stasatdaglabs 2020-03-25 10:57:34 +02:00
  • 7ee8ed71c3 [NOD-828] Add stack traces to all errors that come out of library functions. stasatdaglabs 2020-03-25 10:53:00 +02:00
  • 0af6f6043b [NOD-828] Rearrange TestLevelDBTransactionSanity a bit. stasatdaglabs 2020-03-25 10:20:42 +02:00
  • ef408e3239 [NOD-828] Remove data length from flat file data format. stasatdaglabs 2020-03-24 16:55:25 +02:00
  • d3b1953deb
    [NOD-848] optimize utxo diffs serialize allocations (#666) Ori Newman 2020-03-24 16:44:41 +02:00
  • 31aecae93a [NOD-848] Move subBuffer to utils Ori Newman 2020-03-24 16:38:40 +02:00
  • 68af1b25bb [NOD-828] Fix a comment. stasatdaglabs 2020-03-24 16:05:03 +02:00
  • cc2ce23854 [NOD-828] Fix a comment. stasatdaglabs 2020-03-24 15:53:50 +02:00
  • 1d2b47ba27 [NOD-828] Debugf -> Warnf in rollback.go. stasatdaglabs 2020-03-24 15:53:05 +02:00
  • c615d1f551 [NOD-848] Fix outpointMaxSerializeSize to the correct value Ori Newman 2020-03-24 15:50:05 +02:00
  • 0fe3b030d2 [NOD-828] Extract flatFileLocationSerializedSize to a const. stasatdaglabs 2020-03-24 15:27:10 +02:00
  • ab52ad7086 [NOD-828] Use copy instead of append in Bucket. stasatdaglabs 2020-03-24 15:24:58 +02:00
  • 4d5f2e6309 [NOD-828] Fix a typo. stasatdaglabs 2020-03-24 15:10:49 +02:00
  • 1fd3965256 [NOD-828] Make bucket a type alias instead of a struct. stasatdaglabs 2020-03-24 15:10:17 +02:00
  • cc4458fa32 [NOD-828] Move rollback-on-error logic into ffldb. Remove CurrentStoreLocation and RollbackStore from DataAccessor. stasatdaglabs 2020-03-24 14:25:32 +02:00
  • bc71922f9c [NOD-848] Remove redundant comment Ori Newman 2020-03-24 13:50:46 +02:00
  • 6977fc4b78 [NOD-848] Add outpointIndexByteOrder variable Ori Newman 2020-03-24 13:50:17 +02:00
  • a46ce5da9d [NOD-848] Rename ReadVarIntLittleEndian->ReadVarInt and fix WriteVarInt comment Ori Newman 2020-03-24 13:24:46 +02:00
  • 1948b3b59b [NOD-828] Return both errors in StoreBlock rollback. stasatdaglabs 2020-03-24 13:19:05 +02:00
  • b6d24516c5 [NOD-848] Fix comments Ori Newman 2020-03-24 13:17:19 +02:00
  • fbf8af0d97 [NOD-848] Remove big endian varint Ori Newman 2020-03-24 13:15:05 +02:00
  • 5d0cc409c4 [NOD-828] Implement RollbackUnlessClosed(). stasatdaglabs 2020-03-24 13:13:48 +02:00
  • 3929575d5a [NOD-848] Fix tests Ori Newman 2020-03-24 13:05:24 +02:00
  • c0ab541cc6 [NOD-828] Add a comment explaining the use of batches and snapshots. stasatdaglabs 2020-03-24 13:02:15 +02:00
  • 5e6b847e11 [NOD-848] Remove UTXO compression Ori Newman 2020-03-24 12:56:28 +02:00
  • d1ee260f79 [NOD-828] Remove superfluous whitespace. stasatdaglabs 2020-03-24 12:24:49 +02:00
  • e1ec6be22a [NOD-828] Fix comments. stasatdaglabs 2020-03-24 12:24:01 +02:00
  • be48d4539d [NOD-828] Fix Wrapf calls. stasatdaglabs 2020-03-24 12:14:28 +02:00
  • a2e1a2cddf [NOD-828] Fix a comment. stasatdaglabs 2020-03-24 12:12:53 +02:00
  • 247ea4c5d6 [NOD-828] Fix a comment. stasatdaglabs 2020-03-24 12:11:49 +02:00
  • 98affa8e1e [NOD-828] Use Wrapf instead of Errorf where appropriate. stasatdaglabs 2020-03-24 12:10:48 +02:00
  • 277a6bc0df [NOD-828] Move a misplaced comment. stasatdaglabs 2020-03-24 12:06:03 +02:00
  • b99e1a9079 [NOD-828] Combine another two lines into one. stasatdaglabs 2020-03-24 12:02:51 +02:00
  • 5422274c41 [NOD-828] Combine two lines into one. stasatdaglabs 2020-03-24 12:02:25 +02:00
  • 612974eaef [NOD-828] Since LevelDBCursor satisfied the database2.Cursor interface, use it directly. stasatdaglabs 2020-03-24 11:59:24 +02:00
  • 3aee3a7e1f [NOD-828] Simplify Bucket.Path(). stasatdaglabs 2020-03-24 11:54:56 +02:00
  • ab64c363ff [NOD-828] Update the README and doc.go. stasatdaglabs 2020-03-24 11:51:21 +02:00
  • 608c2fc074 [NOD-828] Make scanFlatFiles return an error if os.Stat fails for any reason other than file-not-found. stasatdaglabs 2020-03-24 11:39:19 +02:00
  • ed2fd8b7cc [NOD-828] Remove superfluous whitespace. stasatdaglabs 2020-03-24 11:15:26 +02:00
  • 8e385a2f1f [NOD-828] Fix not updating the store location in ffldb transactions. stasatdaglabs 2020-03-24 11:14:12 +02:00
  • e5892e6840 [NOD-828] Fix a bug where the wrong location would be written to the current store location bucket. stasatdaglabs 2020-03-24 11:08:46 +02:00
  • 0d5ef26a60 [NOD-828] Attempt to close leveldb even if closing ffdb failed. stasatdaglabs 2020-03-24 11:02:43 +02:00
  • 5ca88d0406 [NOD-828] Make Get return nil if the value doesn't exist. stasatdaglabs 2020-03-24 10:58:29 +02:00
  • cd5a7975ec [NOD-828] Rename Database to DataAccessor and rename Handle to Database. stasatdaglabs 2020-03-24 10:44:14 +02:00
  • 61b94d8db1 [NOD-828] Fix the ffldb description. stasatdaglabs 2020-03-23 16:56:19 +02:00
  • c521727baf [NOD-828] Fix the flatFilesBucket description. stasatdaglabs 2020-03-23 16:53:26 +02:00
  • afe5de4a0e [NOD-862] Use dbaccess.FetchBlock instead of various block fetching mechanisms. stasatdaglabs 2020-03-23 15:10:50 +02:00
  • cdb94d9d35 [NOD-862] Use dbaccess.StoreBlock instead of dbStoreBlock. stasatdaglabs 2020-03-23 14:46:00 +02:00
  • 1a4a162653 [NOD-862] Use dbaccess.HasBlock instead of Tx.HasBlock in initDAGState. stasatdaglabs 2020-03-23 14:37:27 +02:00
  • 6f16ecd45e [NOD-861] Get rid of dbtool/fetchblockregion.go. stasatdaglabs 2020-03-23 13:17:28 +02:00
  • 3c67215e76
    [NOD-796] Upgrade to go 1.14 (#665) Svarog 2020-03-22 14:50:13 +02:00
  • 52a495ded8 [NOD-848] Fix comments and var names Ori Newman 2020-03-22 14:18:05 +02:00
  • 9ff1093edc [NOD-848] Fix tests Ori Newman 2020-03-22 13:50:06 +02:00
  • 59d5ec93a6 [NOD-848] Make entry compression optional Ori Newman 2020-03-22 13:38:33 +02:00
  • 8a4ad9591c [NOD-828] Add a comment warning against putting and getting the same data within the same transaction. stasatdaglabs 2020-03-22 13:25:03 +02:00
  • 63e543bb00 [NOD-828] Properly close the database in TestRepairFlatFiles. stasatdaglabs 2020-03-22 12:52:28 +02:00
  • 4fcc0359e7 [NOD-828] Write a test making sure that flat file repair works. stasatdaglabs 2020-03-22 12:47:33 +02:00
  • 604b414641 [NOD-848] Remove p2pk from decompression support Ori Newman 2020-03-22 11:54:46 +02:00
  • 06a625ce23 [NOD-848] Fix comments Ori Newman 2020-03-22 11:38:42 +02:00
  • 823cae8845 [NOD-828] Generalize flat-file repairing and move block database repairing into ffldb. stasatdaglabs 2020-03-22 11:24:14 +02:00
  • 31f10c7279 [NOD-848] Remove p2pk from compression support Ori Newman 2020-03-22 11:01:16 +02:00
  • 4da9ad5fc5 [NOD-848] Serialize outpoint index with big endian varint Ori Newman 2020-03-22 10:58:47 +02:00
  • c710130033 [NOD-828] Implement cursors that iterate over some bucket. stasatdaglabs 2020-03-22 10:48:06 +02:00
  • 22ed036bf4 [NOD-848] In TestVarIntWire, assume the expected decoded value is the same as the serialization input Ori Newman 2020-03-22 10:42:16 +02:00
  • 8e7a7f37b2 [NOD-848] Add varint for big endian encoding Ori Newman 2020-03-22 10:40:21 +02:00
  • d5464ba511 [NOD-848] Fix comments Ori Newman 2020-03-22 08:41:45 +02:00
  • 0003780931 Merge remote-tracking branch 'origin/v0.2.0-dev' into nod-848-optimize-utxo-diffs-serialize-allocations Ori Newman 2020-03-20 15:24:41 +02:00
  • de31f78ecc [NOD-848] Remove VLQ Ori Newman 2020-03-19 20:48:56 +02:00
  • 2cfb6dc884 [NOD-848] Fix tests Ori Newman 2020-03-19 20:35:25 +02:00
  • 1ace908567 [NOD-848] Fix wire tests Ori Newman 2020-03-19 20:20:32 +02:00
  • 1d89c76dc9 [NOD-848] Fix tests Ori Newman 2020-03-19 19:47:31 +02:00
  • 66dc796407 [NOD-796] Upgrade to go 1.14 Mike Zak 2020-03-19 17:46:37 +02:00
  • 8aed2f9199 [NOD-828] Make buckets nicer to use. stasatdaglabs 2020-03-19 17:24:57 +02:00
  • 586624c836
    [NOD-853] Add profiler server to kaspaminer (#664) Svarog 2020-03-19 17:19:31 +02:00
  • 5185367e4d [NOD-853] Add profiler server to kaspaminer Mike Zak 2020-03-19 16:49:27 +02:00
  • a7d5ed65db [NOD-848] Fix usage of wrong buffer Ori Newman 2020-03-19 15:54:09 +02:00
  • e96a75fc18 [NOD-828] Rename AppendFlatData to AppendToStore and RetrieveFlatData to RetrieveFromStore. stasatdaglabs 2020-03-19 13:13:35 +02:00
  • f2765994ab [NOD-828] Fix comments. stasatdaglabs 2020-03-19 13:04:47 +02:00
  • 17560d3566 [NOD-828] Make ffldb.Open return DatabaseHandle, since ffldb is no longer exported. stasatdaglabs 2020-03-19 12:56:02 +02:00
  • cd4ad66cc8 [NOD-828] Make ffldb generic to later support additional databases. stasatdaglabs 2020-03-19 12:50:21 +02:00
  • e773f2f376 [NOD-828] Move the Database interface to the root database package, since it's meant to be generic. stasatdaglabs 2020-03-19 12:12:55 +02:00
  • b259337cd1 [NOD-828] Move opening/closing the database to dbaccess. stasatdaglabs 2020-03-19 12:07:36 +02:00
  • 6970923e87 [NOD-828] Move dbaccess out of the database package. stasatdaglabs 2020-03-19 12:02:47 +02:00
  • 1075a5b313 [NOD-848] Use same UTXO serialization everywhere, and use compression as well Ori Newman 2020-03-19 11:52:43 +02:00