Commit Graph

  • 789a7379bd
    Require only inputs not be prefilled (#1345) Svarog 2021-01-04 15:55:08 +02:00
  • 2f27b7e6c2 clone pruning point when passing to validateBlockTransactionsAgainstPastUTXO Mike Zak 2021-01-04 15:48:21 +02:00
  • 1094e35193 Add log line Mike Zak 2021-01-04 15:20:59 +02:00
  • a9a02da9af Convert checkNoPrefilledFields into checkNoPrefilledInputs Mike Zak 2021-01-04 15:20:51 +02:00
  • da8257bc8d bug invalidateAndInsertPruningPoint: if ValidateAndInsertBlock returned a non-RuleError error - the error was ignored Mike Zak 2021-01-04 15:19:18 +02:00
  • 778375c4af
    Add recoverability for UTXO index (#1342) Ori Newman 2021-01-04 14:15:51 +02:00
  • 5244653bd1 Update the max block size and mass constants to reasonable values stasatdaglabs 2021-01-04 14:14:58 +02:00
  • 5f4ea3dd55 Fix error Ori Newman 2021-01-04 14:08:00 +02:00
  • a838915dc8 Use VirtualSelectedParent instead of selected tip Ori Newman 2021-01-04 14:04:54 +02:00
  • 31fc46fefc Get rid of the db transaction on resetStore and collect all keys before deleting Ori Newman 2021-01-04 14:00:27 +02:00
  • f236d3548a Rename UTXOOutpointPair->OutpointUTXOPair Ori Newman 2021-01-04 13:57:40 +02:00
  • 07d55550bf Add comment Ori Newman 2021-01-04 12:38:05 +02:00
  • 2150433102 Add recoverability for UTXO index Ori Newman 2021-01-04 12:33:39 +02:00
  • 55abfcbacf delete part (tx.Version < 0) that cannot be exist on the if statement. tal 2021-01-04 11:42:24 +02:00
  • d3531775ac change comment to "ScriptPublicKey represents a Kaspad ScriptPublicKey" tal 2021-01-04 11:36:39 +02:00
  • 522230ed0c Change functions name from ConvertFromRpcScriptPubKeyToRPCScriptPubKey to ConvertFromAppMsgRPCScriptPubKeyToRPCScriptPubKey and from ConvertFromRPCScriptPubKeyToRpcScriptPubKey to ConvertFromRPCScriptPubKeyToAppMsgRPCScriptPubKey tal 2021-01-04 11:32:12 +02:00
  • 0ac5065051 Adds comments to exported functions. tal 2021-01-04 11:21:52 +02:00
  • 197c073434 Add version field (type uint 16 )to block header, txn and to scriptPubKey. tal 2021-01-04 10:54:35 +02:00
  • 5736918f71 Added version (type uint16) for block header, transaction, scriptPubKey. tal 2021-01-04 10:15:28 +02:00
  • 8c90c83262
    Use ChooseSelectedParent in RequiredDifficulty instead of looping over the parents Elichai Turkel 2021-01-03 19:01:14 +02:00
  • ec17bf48b5
    Remove bigintpool as its no longer used Elichai Turkel 2021-01-03 19:00:48 +02:00
  • cb48279857
    Simplify the logic in RequiredDifficulty and reuse big.Int Elichai Turkel 2021-01-03 19:00:28 +02:00
  • dd49b02c72
    Reduce calls to ghostdagstore.Get in blueWindow Elichai Turkel 2021-01-03 18:58:23 +02:00
  • f02499a8ac
    Move hashes.Less to externalapi so it can access the hashes directly without copying Elichai Turkel 2021-01-03 18:57:15 +02:00
  • 4965064df5
    Convert BlockGHOSTDAGData from an interface to a public struct with getters Elichai Turkel 2021-01-03 18:56:18 +02:00
  • acef311fb4
    Improve the performance of downloading headers (#1340) stasatdaglabs 2021-01-03 17:57:14 +02:00
  • 8d9065fe9a Remove MsgBlockHeader from payloads. stasatdaglabs 2021-01-03 17:44:01 +02:00
  • 572c52d7e3 Add a missing return statement. stasatdaglabs 2021-01-03 16:57:58 +02:00
  • 7db355c8c6 Keep a short queue of blockHeadersMessages so that there's never a moment when the node is not validating and inserting headers stasatdaglabs 2021-01-03 16:45:09 +02:00
  • ea3f3a763d Send a lot of headers as a single message instead of many small messages. stasatdaglabs 2021-01-03 16:10:11 +02:00
  • f064b43afc Add a new message: BlockHeadersMessage. stasatdaglabs 2021-01-03 15:50:19 +02:00
  • 20bf9d1849 Add a new message: BlockHeadersMessage. stasatdaglabs 2021-01-03 15:50:00 +02:00
  • e8cad2b2f3
    Send headers continuously without needing to run the BlockLocator protocol after every ~maxBlueScoreDifference blocks (#1339) stasatdaglabs 2021-01-03 15:50:21 +02:00
  • 16f3ae20f0 Make logs more descriptive. stasatdaglabs 2021-01-03 15:23:42 +02:00
  • 8c517afc5d Add logging. stasatdaglabs 2021-01-03 15:21:07 +02:00
  • 97fddeff4b
    Don't mine when node is not connected (#1338) Ori Newman 2021-01-03 14:57:09 +02:00
  • 4d445f4c77 Send headers continuously without needing to run the BlockLocator protocol after ever ~maxBlueScoreDifference blocks stasatdaglabs 2021-01-03 14:55:32 +02:00
  • c4168935b5 Don't mine when node is not connected Ori Newman 2021-01-03 14:48:17 +02:00
  • d6fe9a3017
    Filter headers-only blocks out of parentChildren when selecting virtualSelectedParent (#1337) Svarog 2021-01-03 14:35:03 +02:00
  • 910e93c361 Filter headers-only blocks out of parentChildren when selecting virtualSelectedParent Mike Zak 2021-01-03 14:27:54 +02:00
  • 1abffd472c
    Add lock to mempool.GetTransaction (#1336) Ori Newman 2021-01-03 13:06:46 +02:00
  • 47374403fb Add lock to mempool.GetTransaction Ori Newman 2021-01-03 12:53:38 +02:00
  • 8c8da3b01f
    Convert all log messages in pick_virtual_parents.go to Debugf (#1335) Svarog 2021-01-03 10:20:37 +02:00
  • 058d4c8ac6 Convert all log messages in pick_virtual_parents.go to Debugf Mike Zak 2021-01-03 10:08:34 +02:00
  • 1213651b79 . tal 2021-01-03 09:52:58 +02:00
  • 51625e7967
    Remove LevelDBSnapshot from LevelDBTransaction (#1334) Elichai Turkel 2020-12-31 17:58:01 +02:00
  • 6fa3aa1dca
    Change SyncRateWindow to 15 minutes + update sync times on block headers as well (#1331) Svarog 2020-12-31 16:45:56 +02:00
  • 23304a4977
    Add UTXO set cache (#1333) Ori Newman 2020-12-31 16:34:46 +02:00
  • ff622717a2 Add clear method to cache Ori Newman 2020-12-31 16:06:44 +02:00
  • 3367badf0d
    Update transactions_test.go to represent the new Transaction logic Elichai Turkel 2020-12-31 15:59:35 +02:00
  • f33ee14ce1
    Remove leveldb snapshot from LevelDBTransaction Elichai Turkel 2020-12-31 15:59:02 +02:00
  • b473a09111
    Fix a crash in the UTXO index (#1332) stasatdaglabs 2020-12-31 14:50:14 +02:00
  • 9eb08ef96d Add an additional equality test. stasatdaglabs 2020-12-31 13:52:43 +02:00
  • 4272f69ac6 Remove UTXOEntry.Clone(). stasatdaglabs 2020-12-31 13:46:01 +02:00
  • 0937d0f86a Fix formula for expected blocks Mike Zak 2020-12-31 12:56:56 +02:00
  • 312d67ed49 Populate transactionInputUTXOEntries in applyMergeSetBlocks and use them in the UTXO index. stasatdaglabs 2020-12-31 12:54:35 +02:00
  • 68bff62279 Rename result to isSyncRateTooLow Mike Zak 2020-12-31 12:53:22 +02:00
  • 175b7defd5 Add UTXO set cache Ori Newman 2020-12-31 12:51:36 +02:00
  • d5932e9f2b Change SyncRateWindow to 15 minutes + update sync times on block headers as well Mike Zak 2020-12-31 12:31:41 +02:00
  • 931a75b4c8 Add transactionInputUtxoEntries to the database. stasatdaglabs 2020-12-31 12:14:35 +02:00
  • 2b214fc750 Fix failing tests. stasatdaglabs 2020-12-31 11:54:43 +02:00
  • df0395701c Add a field to TransactionAcceptanceData: TransactionInputUTXOEntries. stasatdaglabs 2020-12-31 11:47:39 +02:00
  • dd35669861
    Check that there are no prefilled fields when validating a block (#1329) Ori Newman 2020-12-30 18:31:17 +02:00
  • 07073932d8 Move cleanBlockPrefilledFields to func (bb *testBlockBuilder) BuildBlockWithParents Ori Newman 2020-12-30 18:14:35 +02:00
  • 9401b77a4f
    Improve the performance of GetBlock and GetBlockHeader. (#1328) stasatdaglabs 2020-12-30 18:13:12 +02:00
  • ea2d21a534 Merge remote-tracking branch 'origin/v0.8.4-dev' into improve-get-block-header-performance stasatdaglabs 2020-12-30 17:57:34 +02:00
  • 0123f2ea44 Move cleanBlockPrefilledFields to BuildBlockWithParents Ori Newman 2020-12-30 17:55:27 +02:00
  • 8300e4dce6 Merge remote-tracking branch 'origin/v0.8.4-dev' into no-prefilled-fields Ori Newman 2020-12-30 17:50:57 +02:00
  • e87368157d
    Update go.yml (#1330) Elichai Turkel 2020-12-30 17:46:17 +02:00
  • 9cf4db5d23
    Update go.yml Elichai Turkel 2020-12-30 17:39:31 +02:00
  • 5133c14912 Use cleanBlockPrefilledFields in AddBlock Ori Newman 2020-12-30 17:29:15 +02:00
  • 3e7c7e412f Check that there are no prefilled fields when validating a block Ori Newman 2020-12-30 17:17:27 +02:00
  • e02f036bd2 Improve the performance of GetBlock and GetBlockHeader. stasatdaglabs 2020-12-30 17:02:13 +02:00
  • 7dd0188838
    Move the heavy lifting in BlockLocator from the syncer to the syncee (#1324) stasatdaglabs 2020-12-30 15:44:14 +02:00
  • 880bf0ad29 Protect against receiving wrong messages when expecting MsgIBDBlockLocatorHighestHash. stasatdaglabs 2020-12-30 15:37:07 +02:00
  • 6172e48adc
    Don't ban when capacity has been reached (#1326) Ori Newman 2020-12-30 15:15:41 +02:00
  • 79de5a0158 Don't ban when capacity has been reached Ori Newman 2020-12-30 15:06:55 +02:00
  • a689c9cfdb Make go vet happy. stasatdaglabs 2020-12-30 14:46:03 +02:00
  • dd19c2b6bf Fix wrong initial highHash in findHighestSharedBlockHash. stasatdaglabs 2020-12-30 14:02:02 +02:00
  • 739cffd918
    Remove half the ghostdag store calls in LowestChainBlockAboveOrEqualToBlueScore (#1323) Elichai Turkel 2020-12-30 13:53:46 +02:00
  • 4043ca0f87 Increase the cache sizes of blockRelationStore, reachabilityDataStore, and ghostdagDataStore. stasatdaglabs 2020-12-30 13:52:41 +02:00
  • f293fcd40d
    Remove half the ghostdag store calls in LowestChainBlockAboveOrEqualToBlueScore Elichai Turkel 2020-12-30 13:13:11 +02:00
  • 71cb949001 Make HandleIBDBlockLocator only return hashes that are in the selected parent chain of the target hash. stasatdaglabs 2020-12-30 13:05:12 +02:00
  • bd89ca2125
    Log only tips length, and inspect ReachabilityData error instead of calling HasReachabilityData (#1321) Elichai Turkel 2020-12-30 13:02:34 +02:00
  • d917a1fc1e
    Remove the block delay from kaspaminer (#1320) Svarog 2020-12-30 12:37:23 +02:00
  • 973d0e3af0
    Inspect ReachabilityData error instead of calling HasReachabilityData Elichai Turkel 2020-12-30 12:36:14 +02:00
  • 3c28734d80
    Print the amount of tips instead of the tips themselves Elichai Turkel 2020-12-30 12:35:23 +02:00
  • 8218b5dbe3 Merge remote-tracking branch 'origin/v0.8.4-dev' into better-block-locator-protocol stasatdaglabs 2020-12-30 12:22:55 +02:00
  • 2c1707e217 Reimplement findHighestSharedBlockHash. stasatdaglabs 2020-12-30 12:22:25 +02:00
  • 66aa0b8ca3 Remove the block delay from kaspaminer Mike Zak 2020-12-30 12:19:14 +02:00
  • 7c5c942fe0 Implement HandleIBDBlockLocator. stasatdaglabs 2020-12-30 10:44:34 +02:00
  • db850cefa7 Add a new message: IBDBlockLocator. stasatdaglabs 2020-12-30 10:33:56 +02:00
  • 9b12b9c58a
    Make ReachabilityData a read-only interface with a writable variant, to prevent cloning (#1316) Svarog 2020-12-30 09:48:38 +02:00
  • a8a8d3617a Rename to ReachabilityData and MutableReachabilityData Mike Zak 2020-12-30 09:27:22 +02:00
  • e0dcf9a436 Add comments Mike Zak 2020-12-29 16:57:16 +02:00
  • 1b17420793 Fix insertToFutureCoveringSet Mike Zak 2020-12-29 16:53:41 +02:00
  • fb98f32bef Cleanup debugging code Mike Zak 2020-12-29 16:22:28 +02:00
  • 4e79c43635 Fix all tests Mike Zak 2020-12-29 16:10:53 +02:00
  • 649cfc41d0 Fix reachabilityDataStore Mike Zak 2020-12-29 12:37:15 +02:00
  • 85c6bdf653 Fix db serialization of reachability data Mike Zak 2020-12-29 12:24:00 +02:00