Commit Graph

1025 Commits

Author SHA1 Message Date
ledgerwatch
0263814f92
Cleanup interfaces (#615)
* Cleanup interfaces

* Add PendingBlock

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-08-31 14:41:33 +01:00
Håvard Anda Estensen
a9459aea68
Enable thelper linter (#610) 2022-08-31 10:09:44 +07:00
Alex Sharov
1508952df9
mdbx more metrics (#614) 2022-08-31 10:09:23 +07:00
Alex Sharov
22beae4579
mdbx more metrics (#613) 2022-08-31 10:04:53 +07:00
Enrique Jose Avila Asapche
393fcf6856
check with bor (#612)
* check with bor

* lol
2022-08-30 18:50:34 +07:00
Enrique Jose Avila Asapche
1a42afe5f2
Parse transaction for bor (#604)
* checking if it is a bor tx

* ops

* checking if sender is empty bytes

* no need for borSprint var

* fixing lint

* still returning p

* added isBor to slot

* added global var

* got rid of sender check

* ops

* ops two

* lint
2022-08-30 09:51:26 +07:00
Håvard Anda Estensen
f418be8e50
Enable unconvert linter (#609)
* Enable unconvert linter

* Print filename and line number when linting fails

* Use same golangci-lint version in makefile as in ci

* Remove unnecessary conversions

* Remove unnecessary conversions
2022-08-30 09:50:23 +07:00
Håvard Anda Estensen
82e0422a49
Upgrade golangci-lint (#606)
* Upgrade golangci-lint to 1.49

* Remove deprecated linters
2022-08-29 11:08:07 +07:00
Håvard Anda Estensen
3b0c5f75f8
Enable prealloc linter (#607) 2022-08-29 11:07:53 +07:00
Alex Sharov
e40691a4ad
history22: small renames #608 2022-08-29 11:07:10 +07:00
Alex Sharov
588519a33b
erigon22: recent history read (#605) 2022-08-28 11:25:53 +07:00
Alex Sharov
cfd14d0297
erigon22: step toward /tests 2022-08-25 15:31:59 +07:00
Andrew Ashikhmin
62a3060555
Avoid redefinitions in gsacak.h (#602) 2022-08-24 15:29:17 +02:00
alex.sharov
5110fa3a13 save 2022-08-24 16:07:32 +07:00
Andrew Ashikhmin
23c7f503e0
WithTablessCfg -> WithTableCfg (#601) 2022-08-24 11:02:47 +02:00
Alex Sharov
a26ef5ea88
metrics version up (#600) 2022-08-24 11:46:21 +07:00
alex.sharov
0d63496706 save 2022-08-24 11:45:32 +07:00
Alex Sharov
c7cf5b6530
clean (#599) 2022-08-22 15:56:18 +07:00
Alex Sharov
eab2010195
InvertedIndex don't loose last key (#597)
* save

* save
2022-08-22 15:45:59 +07:00
Alex Sharov
09dba54e27
Compress: limit patternMaxDepth (#598)
* save

* save

* save

* save

* save

* save
2022-08-22 13:04:01 +07:00
alex.sharov
36778a2db3 save 2022-08-22 10:33:14 +07:00
Artem Tsebrovskiy
db7322ef87
compress: implemented consensed huffman pattern tables (#536)
* dirty working equal dictionaries

* slow but working decompression

* much cleaner implementation with LRU words in dictionary with configurable condensity

* fixed comment

* removed tabs in comment line to fix lint

Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2022-08-22 09:11:56 +07:00
Enrique Jose Avila Asapche
4c744ae88a
separated gb calculation from BytesCount (#593)
* separated gb calculation from BytesCount

* ignoring function in lint
2022-08-19 11:27:19 +07:00
Alex Sharov
30d30ce96f
get code/acc/storage index from aggregator (#596) 2022-08-19 11:25:00 +07:00
alex.sharov
abcfb230fc save 2022-08-19 11:23:56 +07:00
Alex Sharov
d93972c581
domain: docs of tables format (#595) 2022-08-18 15:02:24 +07:00
Alex Sharov
8db5419002
wait_block_reduce (#594) 2022-08-18 12:50:41 +07:00
Alex Sharov
6c392a1baf
Lint fix (#592)
* save

* save
2022-08-17 16:40:32 +07:00
Alex Sharov
0b4dcfb43d
erigon22: unwind code (#591)
* save

* save
2022-08-17 16:37:42 +07:00
hexoscott
ca4cbfe62e
comments for collector loadFilesIntoBucket (#590) 2022-08-16 21:58:29 +07:00
Alex Sharov
59dfcc471c
erigon22: prune - check key existance (#588) 2022-08-15 14:33:32 +07:00
Alex Sharov
4945162dd7
erigon22: unwind code #587 2022-08-15 10:27:08 +07:00
ledgerwatch
e160c1ad9c
Optimise state erigon2.2 reconstitution (#570)
* Start iterator1

* No parallel buildFiles and mergeFiles

* Optimise GetNoState

* Fixes

* Fix 2

* Another fix

* Fix

* More changes iter

* Provide keys in ScanIterator

* Tables for bitmaps

* Add X tables

* Change signature of GeNoState

* More on changes iterator

* Test for changed keys iterator

* ReconDb tables

* Changed key iterator

* Fix lint

* Fix lint

* uncovert

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alex Sharp <alexsharp@alexs-mbp.lan>
2022-08-14 14:56:47 +01:00
Alex Sharov
404276494a
state22.Unwind() (#586) 2022-08-14 17:53:53 +07:00
Alex Sharov
0b68b61b52
fix for loop 2022-08-14 10:21:38 +07:00
Enrique Jose Avila Asapche
491cdeb434
fixing c-99 (#579)
* fixing c-99

* using c99 at compile

* back to before

Co-authored-by: Enrique Jose Avila Asapche <enriavil1@Enriques-MacBook-Pro-2.local>
2022-08-13 18:15:35 +03:00
Alex Sharov
27ce06026f
Aggregator22.Unwind() (#584) 2022-08-13 18:51:23 +07:00
Alex Sharov
8e9ea275cd
txpool: reduce db growth step #583 2022-08-12 23:02:40 +07:00
Alex Sharov
dfb87cc33b
expose_growth_step (#582) 2022-08-12 22:59:28 +07:00
Alex Sharov
6289ca7519
dir.Recreate() (#581) 2022-08-12 22:38:29 +07:00
Alex Sharov
8ed848acbc
dir.Recreate() (#580) 2022-08-12 17:48:00 +07:00
Leonard Chinonso
c96a22dcdc
WIP: Fix null pointer reference error in rpcdaemon (#578)
* saving changes for draft PR

* typo

* Revert "typo"

This reverts commit a7d96e384e87eeceff1a6c51a2bed659eb014ad0.

* checking if reclected value is nil

* Removed print statements

* Removed unused import

* forcing lint ignore

Co-authored-by: Enrique Avila <eavilaasapche@gmail.com>
2022-08-12 12:12:20 +03:00
Andrew Ashikhmin
55fa5d7006
Various fixes and improvements of MemoryMutation (#573)
* Remove duplicate function

* Close cursor in ForAmount

* Correct ForEach & ForPrefix

* Switch GetOne implementation to cursor

* Switch Has implementation to cursor

* Small fixes

* statelessCursors should be cleared in UpdateTxn

* cursorentry -> cursorEntry

* Fix memoryMutationCursor.NextNoDup

* Don't swallow errors

* Fix memoryMutationCursor.First for DupSort tables

* TestFirstAfterClearBucket

* Add TestAutoDupSort

* WithTablessCfg -> WithTablesCfg

* WithTablesCfg -> WithTableCfg

* Add TestAutoDupSort

* Remove memoryMutationCursor.currentPair

* Merge duplicated cursors

* goForward -> resolveCursorPriority

* Extend TestAutoDupSort

* Amend skipIntersection

* Restore currentPair

* Revert "Merge duplicated cursors"

This reverts commit 13ba28f2fd4c63d6ef17254aa93ac05172e37429.

* Revert WithTablessCfg -> WithTableCfg

* Small fix to AppendDup

* Revert "Revert "Merge duplicated cursors""

This reverts commit b94b7612617750d26eebe8b149e5a8d7f219a4db.

* Pay more attention to isTableCleared

* Remove convertAutoDupsort

* Fix DeleteCurrentDuplicates

* Small simplification of memoryMutationCursor.SeekBothRange

* Revert BaseCase -> baseCase

* Revert parameter renaming

* Restore an assertion

* Add TestAutoConversionSeekBothRange

* CursorDupSort doesn't do AutoDupSortKeysConversion
2022-08-11 09:55:28 +02:00
Alex Sharov
71d14b3d85
enable some linters (#577) 2022-08-10 19:08:09 +07:00
Alex Sharov
1e029ac6d8
go1.19 gofmt (#576)
* save

* save
2022-08-10 19:00:19 +07:00
dmitriyselivanov
4a534fd86e
add PendingBlock to EthBackend (#572) 2022-08-10 18:58:13 +07:00
Alex Sharov
3f6d59cb7d
up_metrics version (#575) 2022-08-10 18:39:19 +07:00
Alex Sharov
95e94b2eb5
erigon22: optimize index.add (#571)
* save

* save
2022-08-09 10:28:29 +07:00
Alex Sharov
2be46669d5
Progress type (#568) 2022-08-04 12:31:17 +07:00
Ryan Schneider
8fbf01ca91
mdbx: fix possible semaphore exhaustion on cancelled context (#567) 2022-08-04 11:43:56 +07:00