4691 Commits

Author SHA1 Message Date
Ori Newman
38e5e97b2c Merge branch 'unite-reachability-stores' into v0.11.13-rc1 v0.11.13-rc1-experimental v0.11.13-rc1-tag 2022-03-11 18:02:25 +02:00
Ori Newman
ad6310de81 Send pruning point and its anticone in batches 2022-03-11 18:00:19 +02:00
msutton
5957c9ecdc go fmt 2022-03-11 17:09:04 +02:00
msutton
3f51f926bb apply Don't relay blocks in virtual anticone #1970 to v5 2022-03-11 15:30:16 +02:00
msutton
91875da221 Merge remote-tracking branch 'origin/dev' into fix-ibd-shared-past-search 2022-03-11 15:27:54 +02:00
msutton
fb95156cd1 rename pastdiff -> anticone 2022-03-11 15:27:03 +02:00
msutton
047fa30183 apply the traversal limit logic and sort headers 2022-03-11 15:05:26 +02:00
msutton
8f68d5c606 addressing simple comments 2022-03-11 14:11:08 +02:00
Ori Newman
b7be807167
Don't relay blocks in virtual anticone (#1970) 2022-03-11 13:24:45 +02:00
msutton
63d7dd9f62 missed one err check 2022-03-11 11:26:06 +02:00
msutton
48eb577cac remove unused methods 2022-03-11 11:22:29 +02:00
msutton
a388aefa37 go fmt 2022-03-11 11:18:25 +02:00
msutton
e67b3b65b4 implement ibd sync past diff of relay and selected tip 2022-03-11 11:04:28 +02:00
msutton
6231eaf231 handle and flow for new request past diff message - logic unimplemented yet 2022-03-11 09:19:09 +02:00
msutton
ba20ff3d34 wire for new request past diff message 2022-03-11 08:58:53 +02:00
Ori Newman
e687ceeae7
Add version to block template (#1967) 2022-03-11 08:56:36 +02:00
msutton
7100716aeb protobuf gen for new past diff request message 2022-03-11 08:44:20 +02:00
Ori Newman
04e35321aa
Bump to v0.11.13 (#1968) 2022-03-11 08:33:53 +02:00
msutton
c684bf04bc address the case where pruning points disagree, now both IBD tests pass 2022-03-10 17:23:11 +02:00
Ori Newman
05241bdd72 Merge remote-tracking branch 'origin/dev' into unite-reachability-stores 2022-03-10 09:39:03 +02:00
msutton
947d427f40 new ibd shared block algo -- only basic test passing 2022-03-10 03:02:08 +02:00
msutton
398b06d844 wire for new ibd chain locator types 2022-03-10 01:53:37 +02:00
msutton
0b9abf25f4 protobuf gen for new ibd chain locator 2022-03-10 01:53:02 +02:00
msutton
5639e3ab56 set default version to 5 2022-03-10 01:51:37 +02:00
Ori Newman
264334cbfb Add UpdateReindexRoot to RebuildReachability 2022-03-09 23:17:56 +02:00
Ori Newman
061e65be93
Fix argument order for IsAncestorOf in boundedMergeBreakingParents (#1966) 2022-03-09 21:11:00 +02:00
msutton
840b2a3353 wip 2022-03-08 03:15:20 +02:00
msutton
ea0586045d set all internal imports to v5 2022-03-07 16:37:42 +02:00
msutton
35f86bc98a add p2p v5 which is currently identical to v4 2022-03-07 15:33:52 +02:00
Ori Newman
190e725dd0
Optimize expected header pruning point (#1962)
* Use the correct heuristic to avoid checking for next pruning point movement when not needed
2022-03-07 00:16:29 +02:00
Ori Newman
7a4c4e943b Fix tests 2022-03-03 16:02:22 +02:00
Ori Newman
17c0711d24 Upgrade script 2022-03-03 15:53:30 +02:00
Ori Newman
9887bfa97e Unite all reachability stores 2022-03-03 14:52:17 +02:00
Ori Newman
6449b03034
Ignore transaction invs on IBD (#1960)
* Ignore transaction invs on IBD

* Add IsIBDRunning mock to TestHandleRelayedTransactionsNotFound

Co-authored-by: Ori Newman <>
2022-02-26 22:20:08 +02:00
Ori Newman
9f02a24e8b
Add merge set and IsChainBlock to the RPC (#1961)
* Add merge set and IsChainBlock to the RPC

* Fix BlockInfo.Clone()
2022-02-25 16:22:00 +02:00
Isaac Cook
9b23bbcdb5
kaspactl: string slice deser for GetUtxosByAddresses (#1955)
Co-authored-by: Ori Newman <orinewman1@gmail.com>
2022-02-24 00:40:01 +02:00
stasatdaglabs
b30f7309a2
Implement a parse sub command in the walllet (#1953)
* Add boilerplate for the `parse` sub command.

* Deserialize the given transaction hax.

* Implement the rest of the wallet parse command.

* Hide transaction inputs behind a `verbose` flag.

* Indicate that we aren't able to extract an address out of a nonstandard transaction.

Co-authored-by: Ori Newman <orinewman1@gmail.com>
2022-02-20 22:12:23 +02:00
Ori Newman
1c18a49992
Add cache to block window (#1948)
* Add cache to block window

* Copy the window heap slice with the right capacity

* Use WindowHeapSliceStore

* Use the selected parent window as a basis (and some comments and variable renames)

* Clone slice on newSizedUpHeapFromSlice

* Rename isNotFoundError->currentIsNonTrustedBlock

* Increase windowHeapSliceStore cache size to 2000 and some cosmetic changes
v0.11.12-testnet3 v0.11.12-testnet2
2022-02-20 16:52:36 +02:00
stasatdaglabs
28d0f1ea2e
Set MaxBlockLevels for non-mainnet networks to 250 (#1952)
* Make MaxBlockLevel a DAG params instead of a constant.

* Change the testnet network name to 9.

* Fix TestBlockWindow.

* Set MaxBlockLevels for non-mainnet networks to 250.

* Revert "Fix TestBlockWindow."

This reverts commit 30a7892f53e0bb8d0d24435a68f0561a8efab575.

* Fix TestPruning.
2022-02-20 13:43:42 +02:00
Ori Newman
3f7e482291
Add progress indication for virtual resolution (#1949)
* Add progress indication for virtual resolution

* Avoid division by zero
2022-02-20 00:32:41 +02:00
Ori Newman
ce4f5fcc33
Remove BlockWithTrustedData method (#1950)
* Remove BlockWithTrustedData method

* Remove unused methods
2022-02-20 00:04:47 +02:00
Svarog
be3a6604d7
Make kaspawallet store the utxos sorted by amount (#1947)
* Make kaspawallet store the utxos sorted by amount, so that the bigger utxos are spent first - making it less likely a compound will be required

* Start refactor addEntryToUTXOSet

* Add GetUTXOsByBalances command to rpc

* Store list of addresses, updated with the collectAddresses methods
(replacing collectUTXOs methods)

* Fix wrong commands in GetBalanceByAddress

* Rename: refreshExistingUTXOs -> refreshUTXOs

Co-authored-by: Ori Newman <orinewman1@gmail.com>
2022-02-18 15:08:08 +02:00
Svarog
f452531df0
Fix bookkeeping of chained transactions in mempool (#1946)
* Fix bookkeeping of chained transactions in mempool

* Fix golint error
2022-02-18 13:21:45 +02:00
Ori Newman
13a09da848
Bump version to v0.11.12 (#1941)
Co-authored-by: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com>
2022-02-17 18:27:25 +02:00
Michael Sutton
f58aeb4f9f
In profile dump file - use a time format supporting all file systems (#1945)
* Use a time format without ":" to support all file systems

* go fmt
2022-02-12 22:00:46 +02:00
Ori Newman
82f0a4d74f
Drop support for p2p v3 (#1942)
* Drop support for p2p v3

* Remove redundant aliases

* Remove redundant condition
2022-02-06 17:28:06 +02:00
Ori Newman
69d90fe827
Remove duplicate median time calculation on tx validation (#1943)
Co-authored-by: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com>
2022-02-06 16:34:05 +02:00
Ori Newman
c85b5d70fd
Add AllowConnectionToDifferentVersions flag to kaspactl (#1940) 2022-02-06 15:43:09 +02:00
Ori Newman
1cd712a63e
Increase headers proof timeout and add more progress logs (#1939)
* Increase timeout for pruning proof and add some logs

* Show resolving virtual progress as whole percents
v0.11.12-testnet1
2022-02-06 12:42:28 +02:00
stasatdaglabs
27ba9d0374
Split ApplyPruningPointProof to multiple small database transactions (#1937)
* Split ApplyPruningPointProof to multiple small database transactions.

* Increase the timeout duration in TestIBDWithPruning.

* Increase the timeout duration in simple-sync.

* Explain that if ApplyPruningPointProof fails, the database must be discarded.
2022-02-06 10:36:27 +02:00