Commit Graph

  • a318b9ebc6 All orphans inputs should be added to op.orphansByPreviousOutpoint even if outpoint is not missing Mike Zak 2021-06-24 16:34:39 +03:00
  • 82571d59b2 Remove the no-longer relevant hashes part of targetHashNanosecondsFunction. stasatdaglabs 2021-06-24 16:22:42 +03:00
  • 6c9fcc1848 Add more tests. stasatdaglabs 2021-06-24 16:14:39 +03:00
  • 5a1d151fc4 Improve progress logs. stasatdaglabs 2021-06-24 15:57:25 +03:00
  • d032c4736f Simplify targetHashNanosecondsFunction. stasatdaglabs 2021-06-24 15:34:01 +03:00
  • 6952fa7dcf Add sudden hashrate drop/jump tests. stasatdaglabs 2021-06-24 15:31:12 +03:00
  • 798c5fab7d
    Add allowOrphans to rpcclient.SubmitTransaction (#1765) Svarog 2021-06-24 15:23:10 +03:00
  • 6080ec1aec Add allowOrphans to rpcclient.SubmitTransaction Mike Zak 2021-06-24 14:57:20 +03:00
  • da7a82d189 Reorganize TestDAA to be more like a traditional test. stasatdaglabs 2021-06-24 13:26:47 +03:00
  • 117772ff28 Convert TestDAA back into a go test. stasatdaglabs 2021-06-24 11:52:26 +03:00
  • f93b18a99c Tidied up a bit. stasatdaglabs 2021-06-23 16:55:12 +03:00
  • 1bd8c1811c Finish implementing testConstantHashRate. stasatdaglabs 2021-06-23 16:40:38 +03:00
  • c13a4d90ed
    Mempool redesign (#1752) Svarog 2021-06-23 15:49:20 +03:00
  • dd1b220958 remove mutex comments Mike Zak 2021-06-23 15:38:29 +03:00
  • b8577a8558 Add comment Mike Zak 2021-06-23 15:34:49 +03:00
  • e5e4ae03a7 Change SequenceLockTimeDisabled to 1 << 63 Mike Zak 2021-06-23 15:27:58 +03:00
  • acb3c478ab Start fixing TestValidateAndInsertImportedPruningPoint Ori Newman 2021-06-22 18:37:57 +03:00
  • bc537aa634 Implement PruningPointAndItsAnticoneWithMetaData Ori Newman 2021-06-22 18:16:29 +03:00
  • 3ce8d8c905 Add virtual genesis Ori Newman 2021-06-22 16:20:25 +03:00
  • 81787da30b Convert all MaximumXXX constants to uint64 Mike Zak 2021-06-22 15:23:45 +03:00
  • 1f36965de8 Start kaspad and make sure that hashrate throttling works with that as well. stasatdaglabs 2021-06-22 15:11:22 +03:00
  • f30c0188a1 Convert the DAA test to an application. stasatdaglabs 2021-06-22 14:34:52 +03:00
  • 78b3f1538a Rename createChildTxWhereParentTxWasAddedByConsensus -> createChildAndParentTxsAndAddParentToConsensus Mike Zak 2021-06-22 14:15:29 +03:00
  • f3da8a54ad Handle error from createChildTxWhereParentTxWasAddedByConsensus Mike Zak 2021-06-22 14:14:37 +03:00
  • aeb2680fbe Merge remote-tracking branch 'upstream/v0.11.0-dev' into mempool-redesign Mike Zak 2021-06-22 13:11:14 +03:00
  • 23f28258dc Rename: createChildTxWhenParentTxWasAddedByConsensus -> createChildTxWhereParentTxWasAddedByConsensus Mike Zak 2021-06-22 13:10:43 +03:00
  • 334b41fe19 Fix comment Mike Zak 2021-06-22 09:26:55 +03:00
  • e9eb61fe9e Add comment on defaultMaximumOrphanTransactionCount to keep it small as long as we have recursion Mike Zak 2021-06-22 09:24:22 +03:00
  • 1cb3dd1c35 Have separate min/max transaction versions for mempool Mike Zak 2021-06-22 09:17:16 +03:00
  • bfe958f533 Fix some comments Mike Zak 2021-06-22 09:09:17 +03:00
  • e613645667 TestDoubleSpendInMempool: use createChildTxWhenParentTxWasAddedByConsensus instead of createTransactionWithUTXOEntry Mike Zak 2021-06-22 09:05:30 +03:00
  • fdf07b8222 limitOrphanPool only after the orphan was added Mike Zak 2021-06-22 08:53:07 +03:00
  • 78474f7b03 Rename all map type to singulateToSingularMap Mike Zak 2021-06-22 08:50:32 +03:00
  • dcad81bd80 Move check for MaximumOrphanCount to beggining of maybeAddOrphan Mike Zak 2021-06-22 08:48:45 +03:00
  • d81c78cd76 Fix TestRevalidateHighPriorityTransactions Mike Zak 2021-06-21 17:42:14 +03:00
  • d844b0cf51 Remove checkDoubleSpends from revalidateTransaction Mike Zak 2021-06-21 17:48:55 +03:00
  • 4ba8b14675
    Make GetVirtualSelectedParentBlueScore work properly (#1764) Constantine Bitensky 2021-06-21 15:56:37 +03:00
  • 105b4800d0 Merge remote-tracking branch 'upstream/v0.11.0-dev' into mempool-redesign Mike Zak 2021-06-21 15:53:11 +03:00
  • f5fad5db57 Add TestRevalidateHighPriorityTransactions Mike Zak 2021-06-21 15:31:50 +03:00
  • 03f0f7352f Fix consensus tests except TestValidateAndInsertPruningPointWithSideBlocks and TestValidateAndInsertImportedPruningPoint Ori Newman 2021-06-21 13:08:17 +03:00
  • 107d59863b Make GetVirtualSelectedParentBlueScore work properly Constantine Bitensky 2021-06-21 12:03:37 +03:00
  • 319cbce768
    Friendly error messages for ban and unban with ip with brackets (#1762) Constantine Bitensky 2021-06-21 11:42:45 +03:00
  • ae28871981 Fix off-by-one error in limitTransactionCount Mike Zak 2021-06-21 10:19:30 +03:00
  • f49628245f Add TestHighPriorityTransactions Mike Zak 2021-06-21 10:19:04 +03:00
  • 545842ebe0 Add orphan to acceptedOrphans, not current Mike Zak 2021-06-21 10:07:13 +03:00
  • bb845a0201 Add checkOrphanDuplicate Mike Zak 2021-06-21 09:47:52 +03:00
  • 8c1ecb7427 Make GetVirtualSelectedParentBlueScore work properly Constantine Bitensky 2021-06-20 21:27:57 +03:00
  • b4b5266a62 Friendly error messages for ban and unban with ip with brackets Constantine Bitensky 2021-06-20 20:46:56 +03:00
  • d6c19aa260 Remove headers-first Ori Newman 2021-06-20 18:34:02 +03:00
  • c9fd3d92fe Implement a fairly reliable method of hashing at a certain hashrate. stasatdaglabs 2021-06-20 17:32:20 +03:00
  • bdd42903b4
    Remove NOP1..10 (#1761) Constantine Bitensky 2021-06-20 16:52:12 +03:00
  • fe3302bc96 Check for double spends in mempool during revalidateTransaction Mike Zak 2021-06-20 16:35:57 +03:00
  • 6eb2f8e34a Remove NOP1..10 Constantine Bitensky 2021-06-20 15:05:57 +03:00
  • 2aaabeba82 Don't use exported (and locking) methods from inside mempool Mike Zak 2021-06-20 13:39:21 +03:00
  • 3a3a5ad775 Disallow double-spends in orphan pool Mike Zak 2021-06-20 13:25:47 +03:00
  • 0a45a3bcd0 Don't evacuate from orphanPool high-priority transactions Mike Zak 2021-06-20 12:53:43 +03:00
  • 099015c647 mempoolUTXOSet.removeTransaction: Don't restore utxo if it was not created in mempool Mike Zak 2021-06-20 11:59:21 +03:00
  • f6dd06ddfd Pluralize the map types Mike Zak 2021-06-20 11:19:57 +03:00
  • 3687366ecb Return error from limitTransactionCount Mike Zak 2021-06-20 11:18:37 +03:00
  • 02cc5065f3 Add mutex comment to handleNewBlockTransactions Mike Zak 2021-06-20 11:17:38 +03:00
  • 30750cc770 Use mempool.removeTransaction in limitTransactionCount Mike Zak 2021-06-20 10:52:04 +03:00
  • d55b58e48c Don't remove high-priority transactions in limitTransactionCount Mike Zak 2021-06-20 10:48:11 +03:00
  • 6dca0dbd62 Clarify comment about removeRedeemers when removing random orphan Mike Zak 2021-06-17 18:20:32 +03:00
  • a36775e8ca Copy over boilerplate and begin implementing TestDAA. stasatdaglabs 2021-06-17 17:40:05 +03:00
  • edf63e668b fillInputs: Skip check for coinbase - it's always false in mempool Mike Zak 2021-06-17 15:57:37 +03:00
  • cfe423d078 Add test for attempt to insert double spend into mempool Mike Zak 2021-06-17 15:20:11 +03:00
  • 8fc2bea487 Move mempoolUTXOSet out of checkDoubleSpends Mike Zak 2021-06-17 15:00:33 +03:00
  • 91c2d49b68 Convert creation of acceptedTransactions to a single line Mike Zak 2021-06-17 14:38:09 +03:00
  • 3426d298af Update some comment Mike Zak 2021-06-17 14:18:28 +03:00
  • 0e05562863 Add explanation for the seemingly redundant check for transaction version in checkTransactionStandard Mike Zak 2021-06-17 10:21:26 +03:00
  • 296f96ab25 Pruning headers p2p basic structure Ori Newman 2021-06-14 18:51:44 +03:00
  • 696c5fa427 Use MinRelayFee and MaxOrphanTxs from global kaspad config Mike Zak 2021-06-16 17:36:22 +03:00
  • 006ea6e008 Get mempool config from outside, incorporating values received from cli Mike Zak 2021-06-16 16:14:18 +03:00
  • 9bedf84740
    kaspawallet: Add timeout to connect to daemon, and print friendly error (#1756) Svarog 2021-06-16 15:05:19 +03:00
  • 6bea15282b kaspawallet: Add timeout to connect to daemon, and print friendly error message if it's not available Mike Zak 2021-06-16 13:16:13 +03:00
  • f317f51cdd
    Change IBD finished log to specify if completed succesfully or not (#1754) Svarog 2021-06-16 11:13:29 +03:00
  • 154d26dc38 Style inhancement of IBD finished string Mike Zak 2021-06-16 10:56:28 +03:00
  • 4f19dd0290 Move log to outside UnsetIBDRunning Mike Zak 2021-06-16 10:06:33 +03:00
  • faa01c074c Change IBD finished log to specify if complete succesfully or not Mike Zak 2021-06-16 09:47:12 +03:00
  • 4207c82f5a
    Add database prefix (#1750) Ori Newman 2021-06-15 17:47:17 +03:00
  • 873e0796e1 Use ioutil.TempDir instead of t.TempDir Ori Newman 2021-06-15 17:12:21 +03:00
  • db67c91148 Make prefix type-safer Ori Newman 2021-06-15 15:52:35 +03:00
  • 62613e6e9b Add lock to staging consensus Ori Newman 2021-06-15 15:26:00 +03:00
  • 0859bb1f4c Add DeleteStagingConsensus to Domain interface Ori Newman 2021-06-15 15:23:42 +03:00
  • dc30c51589 Rename Temporary Consesnsus to Staging Ori Newman 2021-06-15 15:20:25 +03:00
  • 3f5c11393f Use countKeyName Ori Newman 2021-06-15 15:17:29 +03:00
  • 06515670e1 Use real transaction count, and not Orphan Mike Zak 2021-06-15 14:44:00 +03:00
  • 7db183281a Merge remote-tracking branch 'upstream/v0.11.0-dev' into mempool-redesign Mike Zak 2021-06-15 14:41:55 +03:00
  • b910bcbd4d Don't re-use GetVirtualDAAScore in GetVirtualInfo - this causes a deadlock Mike Zak 2021-06-15 14:31:43 +03:00
  • c8a6700450 Broadcast all transactions that were accepted Mike Zak 2021-06-15 14:27:15 +03:00
  • f7efb0cdb8 Add separate VirtualDAASCore method for faster retrieval where it's repeated multiple times Mike Zak 2021-06-15 13:57:53 +03:00
  • 4ddb8442bc Remove minimum relay fee from TestDust, as it's no longer configurable Mike Zak 2021-06-15 10:44:39 +03:00
  • b92d005a50 Use t.Errorf in stead of t.Fatalf Mike Zak 2021-06-15 10:35:58 +03:00
  • d7bb3cd24a Don't pass acceptedOrphans to handleNewBlockTransactions Mike Zak 2021-06-15 10:23:28 +03:00
  • e7081798bd tidy go mod Mike Zak 2021-06-15 09:36:27 +03:00
  • 3a6e915c96 Remove all implementation from mempool.go Mike Zak 2021-06-14 18:30:22 +03:00
  • 4f1f2d79a8 Adds a test for wrong lock time, removed fundingTransaction variable tal 2021-06-14 16:15:52 +03:00
  • cdd114c57e Add allowOrphan to SubmitTransaction RPC request Mike Zak 2021-06-14 13:23:24 +03:00
  • d245a0b6cb Export and rename isDust -> IsTransactionOutputDust to allow usage by rothschild Mike Zak 2021-06-14 13:17:14 +03:00
  • 5473bc1e59 Change error message Ori Newman 2021-06-14 12:06:21 +03:00