Commit Graph

  • cb6a1dc679 Fix TestBlockWindow. stasatdaglabs 2021-10-17 11:38:32 +03:00
  • 7705a6b1dc Fix TestCheckBlockIsNotPruned. stasatdaglabs 2021-10-17 11:23:21 +03:00
  • 008b52dd8c Fix TestPruning. stasatdaglabs 2021-10-17 11:11:35 +03:00
  • b0b8e2fdf4 Fix simnet genesis. stasatdaglabs 2021-10-17 10:52:28 +03:00
  • 130fa44e29 Manually remove the virtual genesis from the merge set. stasatdaglabs 2021-10-17 10:40:01 +03:00
  • 7ab357e3bc Keep a blockWindow amount of blocks under the virtual for IBD purposes. stasatdaglabs 2021-10-17 10:33:06 +03:00
  • 267c2d1b5c Get rid of the subsidy store and extract subsidies out of coinbase transactions. stasatdaglabs 2021-10-17 09:12:55 +03:00
  • 1b1fb05825 Set page file size to 8gb Ori Newman 2021-10-14 13:13:16 +03:00
  • ccf60ae711 numBullies->16 Ori Newman 2021-10-14 12:22:15 +03:00
  • 951792a053 Remove BlockAtDepth from DAGTraversalManager Ori Newman 2021-10-14 12:11:59 +03:00
  • 5edc4e29e2 Revert to Test64IncomingConnections Ori Newman 2021-10-14 11:44:48 +03:00
  • e2a7c733c8 Force connection loop next iteration on connection manager stop Ori Newman 2021-10-14 11:41:28 +03:00
  • da19b88bb2 Add errDAAWindowBlockNotFound Ori Newman 2021-10-13 17:08:21 +03:00
  • 7b08552186 Add ErrPruningProofMissesBlocksBelowPruningPoint Ori Newman 2021-10-13 16:24:59 +03:00
  • 8ae689d1b8 Return to default timeout Ori Newman 2021-10-13 13:36:20 +03:00
  • 8bf65b2d5a Add better caching for daa window store Ori Newman 2021-10-13 12:56:40 +03:00
  • 911484d812 Increase test timeout Ori Newman 2021-10-13 10:36:50 +03:00
  • 8ac5a48e27 Calculate merge set for ApplyPruningPointProof Ori Newman 2021-10-13 03:26:15 +03:00
  • 1c452cbd31 Add subsidy to the coinbase payload. stasatdaglabs 2021-10-12 17:35:32 +03:00
  • 6a4731e63b Remove the reference to DAGTopologyManager in coinbaseManager. stasatdaglabs 2021-10-12 16:02:44 +03:00
  • 03abe5d2f6 In calculateAveragePastSubsidy, use blockWindow instead of doing a BFS manually. stasatdaglabs 2021-10-12 16:00:18 +03:00
  • 9e01bd0d6d In TrustedDataDataDAABlock, replace BlockHeader with DomainBlock stasatdaglabs 2021-10-12 15:44:50 +03:00
  • 9ca7f91927 Fix limitTransactionCount sometimes crashing on index-out-of-bounds. stasatdaglabs 2021-10-11 16:09:49 +03:00
  • 7fe17cc5dc Fix TestBlockWindow. stasatdaglabs 2021-10-11 15:36:30 +03:00
  • 3d6b63728c Fix a couple of failing tests. stasatdaglabs 2021-10-11 15:26:38 +03:00
  • ca2df051d1 Remove debug logs. stasatdaglabs 2021-10-11 15:12:11 +03:00
  • 61ac3f5bb8 Lower MaxSompi further to avoid new and exciting ways for the uint64 ceiling to be hit. stasatdaglabs 2021-10-11 15:10:36 +03:00
  • ccea2dabde Reduce MaxSompi to only 100m Kaspa to avoid hitting the uint64 ceiling. stasatdaglabs 2021-10-11 15:05:00 +03:00
  • 774cebbf07 Remove the fake duplicate constants in the util package. stasatdaglabs 2021-10-11 14:59:50 +03:00
  • 8b0cc11cd8 Clamp the block subsidy. stasatdaglabs 2021-10-11 14:34:01 +03:00
  • 7006a814f1 Change some values around. stasatdaglabs 2021-10-11 14:26:10 +03:00
  • 9df9b9c345 Use a binomial distribution instead of trying to estimate the normal distribution. stasatdaglabs 2021-10-11 13:30:16 +03:00
  • ebf653c787 Set the standard deviation to 0.2. stasatdaglabs 2021-10-11 11:33:17 +03:00
  • f675fe109e Set standardDeviation to 0.25, MaxSompi to 10_000_000_000 * SompiPerKaspa and defaultSubsidyGenesisReward to 1_000. stasatdaglabs 2021-10-11 11:20:24 +03:00
  • b2488a65e7 In order to avoid unsupported fractional results from powInt64, flip the numerator and the denominator manually. stasatdaglabs 2021-10-11 10:58:25 +03:00
  • 8fb80e5ebc Use a random walk to approximate the normal distribution. stasatdaglabs 2021-10-11 10:23:45 +03:00
  • 0017617a44 Change test timeouts Ori Newman 2021-10-10 16:23:46 +03:00
  • 18a4c52339 Uncomment golint Ori Newman 2021-10-10 15:51:56 +03:00
  • 1c5e120d52 stage status and finality point for proof blocks Ori Newman 2021-10-10 13:08:28 +03:00
  • 59382c4c06 Use pruning proof in TestValidateAndInsertImportedPruningPoint Ori Newman 2021-10-04 22:12:13 +03:00
  • 1f639a9dcc Find common ancestor for blockAtDepthMAtNextLevel Ori Newman 2021-09-30 11:03:53 +03:00
  • 9c624cb3c5 Ban for rule errors on pruning proof Ori Newman 2021-09-29 20:29:01 +03:00
  • 0fa56350a0 Fix isAncestorOfPruningPoint Ori Newman 2021-09-27 16:54:09 +03:00
  • 9028c0100e Fix block window Ori Newman 2021-09-27 16:53:42 +03:00
  • ec499fbd9e Fix syncAndValidatePruningPointProof to return the right block hash Ori Newman 2021-09-27 14:51:35 +03:00
  • acd281548b Fix a nil dereference. stasatdaglabs 2021-09-27 13:59:02 +03:00
  • 552730d67f Replace float64 with big.Rat everywhere except for subsidyRandomVariable. stasatdaglabs 2021-09-27 13:29:33 +03:00
  • fc706b4d1e Include all relevant blocks for each level in the proof Ori Newman 2021-09-27 13:10:32 +03:00
  • 61c55b7881 Fix bad range in calculateSubsidyRandomVariable. stasatdaglabs 2021-09-27 11:41:46 +03:00
  • 119699505b Use binary.LittleEndian in calculateSubsidyRandomVariable. stasatdaglabs 2021-09-27 11:37:21 +03:00
  • ba12089994 Some bug fixes Ori Newman 2021-09-25 13:40:30 +03:00
  • d78e2d7923 Add prefix and fix blockAtDepth and fill headersByLevel Ori Newman 2021-09-25 09:21:53 +03:00
  • 367dcbb9d6 Implement ApplyPruningPointProof Ori Newman 2021-09-23 16:39:43 +03:00
  • a0c6cf0642 Add PruningProofManager Ori Newman 2021-09-23 14:33:45 +03:00
  • da2daf2906 Update the calcBlockSubsidy TODO. stasatdaglabs 2021-09-22 15:08:40 +03:00
  • ed3321cb6f Add a TODO about floats. stasatdaglabs 2021-09-22 14:13:41 +03:00
  • cc9d811993 Implement calcBlockSubsidy. stasatdaglabs 2021-09-22 13:48:15 +03:00
  • 0e3297690c Implement calculateSubsidyRandomVariable. stasatdaglabs 2021-09-22 13:13:21 +03:00
  • c11bbd074a Implement calculateMergeSetSubsidySum. stasatdaglabs 2021-09-22 12:32:39 +03:00
  • f955c82504 Implement calculateAveragePastSubsidy. stasatdaglabs 2021-09-22 12:20:59 +03:00
  • 6f4a9c5ccd BuildPruningPointProof Ori Newman 2021-09-22 12:07:15 +03:00
  • a30a275855 Fix finalityStore not calling GenerateShardingID. stasatdaglabs 2021-09-22 11:58:11 +03:00
  • 4940e06f7a Wrap calcBlockSubsidy in getBlockSubsidy, which first checks the database. stasatdaglabs 2021-09-22 11:50:46 +03:00
  • 15d8c578bb Refer to SubsidyStore from CoinbaseManager. stasatdaglabs 2021-09-22 11:41:42 +03:00
  • 3fad779cf1 Partially implement SubsidyStore. stasatdaglabs 2021-09-22 11:29:35 +03:00
  • c702832e93 Traverse a block's past for the subsidy calculation. stasatdaglabs 2021-09-22 11:11:01 +03:00
  • da8769c9a7 Return subsidyGenesisReward if blockHash is the genesis hash. stasatdaglabs 2021-09-22 09:16:51 +03:00
  • 1b17dad627 Replace the old blockSubsidy parameters with the new ones. stasatdaglabs 2021-09-22 09:13:32 +03:00
  • afafeb0c59 Fix TestIBDWithPruning. stasatdaglabs 2021-09-20 08:05:34 +03:00
  • a183a944e4 BuildPruningPointProof Ori Newman 2021-09-15 12:29:54 +03:00
  • 0d8980b1cd Increase page file Ori Newman 2021-09-14 16:07:34 +03:00
  • 70ba9c8091 Reduce the number of connections in the integration test to 16 Ori Newman 2021-09-14 15:10:57 +03:00
  • 204f7902bf Don't preallocate cache for dag stores except level 0 and reduce the number of connections in the integration test to 32 Ori Newman 2021-09-14 14:43:27 +03:00
  • 22b8c27692 Add a commment stasatdaglabs 2021-09-13 17:10:11 +03:00
  • e347259824 Fix a variable name. stasatdaglabs 2021-09-13 17:05:26 +03:00
  • 080359d209 Fix a comment. stasatdaglabs 2021-09-13 17:00:30 +03:00
  • c2dceff1b0 Add a comment. stasatdaglabs 2021-09-13 17:00:08 +03:00
  • fb1269b07f Fix wrong logic. stasatdaglabs 2021-09-13 16:56:40 +03:00
  • 9a5fcb26a7 Fix TestIBDWithPruning. stasatdaglabs 2021-09-13 16:42:29 +03:00
  • d67e95868a Implement validatePruningPointFutureHeaderTimestamps. stasatdaglabs 2021-09-13 16:21:53 +03:00
  • 21827c407d Calculate GHOSTDAG, reachability etc for each level Ori Newman 2021-09-13 15:58:39 +03:00
  • afaac28da1
    Validate each level parents (#1827) Ori Newman 2021-09-13 14:22:00 +03:00
  • 67707d9d9b
    Merge branch 'v0.11.0-dev' into superblocks-2 Ori Newman 2021-09-13 13:13:26 +03:00
  • 0053ee788d
    Use the BlueWork declared in an orphan block's header instead of requesting it explicitly from the peer that sent us the orphan (#1828) stasatdaglabs 2021-09-13 13:13:03 +03:00
  • e2968a9276 Use ParentsAtLevel Ori Newman 2021-09-13 13:05:27 +03:00
  • 76f39f8b09 Add blockToReferences type Ori Newman 2021-09-13 12:22:04 +03:00
  • d76d17dfb2 Add comments Ori Newman 2021-09-13 12:21:53 +03:00
  • ab8057bb1e Get rid of maybeAddDirectParentParents Ori Newman 2021-09-13 11:58:14 +03:00
  • ff183248e4 Change order of directParentHashes Ori Newman 2021-09-13 11:56:48 +03:00
  • 244387ea0a Use the BlueWork declared in an orphan block's header instead of requesting it explicitly from the peer that sent us the orphan stasatdaglabs 2021-09-13 11:47:15 +03:00
  • 4f005ff664 Merge remote-tracking branch 'origin/v0.11.0-dev' into superblocks-2 Ori Newman 2021-09-12 23:30:41 +03:00
  • 1f73e2e39e Add comments Ori Newman 2021-09-12 23:26:53 +03:00
  • 9083730793 Fix tests Ori Newman 2021-09-12 22:58:46 +03:00
  • b7d74fa278 Fix BuildParents Ori Newman 2021-09-11 22:18:58 +03:00
  • af7e7de247
    Add PruningPointProof to the P2P protocol (#1825) stasatdaglabs 2021-09-05 17:20:15 +03:00
  • 984aad78ee Fix wire PruningPointProof to be two-dimensional. stasatdaglabs 2021-09-05 16:17:43 +03:00
  • 667b6e988e Fix PruningPointProof and MsgPruningPointProof to be two-dimensional. stasatdaglabs 2021-09-05 16:07:17 +03:00
  • b1c06e3527 Revert "Add PruningPointBlueWork." stasatdaglabs 2021-09-05 15:51:14 +03:00
  • b16960868a Revert "Properly initialize PruningPointProof in consensus.go." stasatdaglabs 2021-09-05 15:51:06 +03:00
  • d1a9f264b4 Revert "Validate pruning point blue work." stasatdaglabs 2021-09-05 15:51:02 +03:00