Commit Graph

1206 Commits

Author SHA1 Message Date
Alex Sharov
9a6ae5bf5a
kv: tx.Prefix method (#804) 2022-12-26 17:58:17 +07:00
alex.sharov
d0ccc19cb9 mdbx: set max bg sync bytes limit 2022-12-25 22:00:20 +07:00
alex.sharov
b023e06483 save 2022-12-25 21:54:07 +07:00
alex.sharov
2110fb06d5 kv: more docs 2022-12-25 18:27:21 +07:00
Alex Sharov
0aeae327e1
KV: tx.Range() with stream api (#803) 2022-12-25 17:40:04 +07:00
Alex Sharov
1371990bed
e3: BuildMissedIndices errgroup (#802) 2022-12-24 17:30:21 +07:00
Alex Sharov
3170bf0a57
kv_remote: server to support thread-safe multi-streams per 1 tx (#798) 2022-12-24 13:11:09 +07:00
alex.sharov
c8cd6f567f save 2022-12-24 11:18:49 +07:00
Alex Sharov
5c2433d8cf
in mem test - don't use writemap (#801) 2022-12-23 14:37:55 +07:00
Alex Sharov
d2603c5730
use in-mem db in tests (#800) 2022-12-23 14:34:14 +07:00
Giulio rebuffo
afe3703d28
Added Attestestation tables (#797) 2022-12-22 19:11:57 +01:00
Alex Sharov
48bd0311d5
kv_remote: c.Count() (#799) 2022-12-22 12:44:06 +07:00
Alex Sharov
491423b6fe
e3: kv/temporal prototype 3 (#796) 2022-12-22 09:37:29 +07:00
Alex Sharov
f5db7c9bef
e3: kv/temporal prototype 2 (#792) 2022-12-20 09:28:09 +07:00
Alex Sharov
0d5c9f0fed
e3: kv/temporal prototype (#791) 2022-12-19 15:38:57 +07:00
Alex Sharov
d89b77ccb3
better memdb use in tesets (#790) 2022-12-19 10:58:15 +07:00
Alex Sharov
f239b04a72
e3: reconst MakeSteps - to check that files are indexed (#789) 2022-12-19 10:26:43 +07:00
Alex Sharov
2cabdd37fc
e3: prune all keys by DeleteCurrentDuplicates (#788) 2022-12-19 10:09:29 +07:00
Alex Sharov
0f8fdd40c2
unify logs a bit (#787) 2022-12-18 09:23:06 +07:00
hexoscott
55d0e42c95
yielded changes in txpool (#784)
pass in a slice of already yielded ids. Allows for per mining process
filtering. The global state before was causing issues with mining
processes stealing transactions.
2022-12-18 08:43:14 +07:00
Alex Sharov
3b68fec09a
mdbx: relax a bit merge limit (still leave it stronger than default) (#786) 2022-12-17 20:06:19 +07:00
Alex Sharov
199a9c890d
e3: increase default wal limit (#785) 2022-12-17 16:54:03 +07:00
Andrew Ashikhmin
125788cbac
Extend fork ID to timestamp-based forks (#783)
Prerequisite for https://github.com/ledgerwatch/erigon/pull/6324
2022-12-16 11:42:09 +01:00
Alex Sharov
9a8477f65c
e3: cancel background build (#782) 2022-12-15 17:07:37 +07:00
Alex Sharov
67815f5faa
e3: handle "kill -9" during merge, auto-hide history .ef file if not corresponding .v file (#781) 2022-12-15 13:49:03 +07:00
Alex Sharov
7f4876880c
e3: more aggressive prune (#780) 2022-12-14 09:50:31 +07:00
Alex Sharov
b20afcad3c
e3: auto-remove useless files (#779) 2022-12-14 09:03:09 +07:00
Max Revitt
c9c1b15547
Revert "Withdrawals - Database (#758)" (#778)
This reverts commit 183856e788.

We will store the withdrawals in the body until we have a reason not to.
2022-12-12 12:23:21 +00:00
hexoscott
aa99053b78
reset yielded state in txpool (#777) 2022-12-12 10:14:56 +00:00
ledgerwatch
d70b55bc1a
Add PeerUseless function to instruct sentry that peer should not be used for a while (#776)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-12-11 22:20:33 +00:00
ledgerwatch
874c497dda
Add passive_peers parameter to the sentry to better take advantage of non-POS block gossip (#775)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2022-12-11 14:53:19 +00:00
Alex Sharov
2f641bdeb4
e3: earlier flush (#774) 2022-12-10 15:53:50 +07:00
ledgerwatch
dfd0e6cbfa
[erigon3] Add iterators and tables for incremental reconstitution (#742)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-12-10 08:38:02 +00:00
hexoscott
c9a7ae152a
move to PeekBest and YieldBest methods in txpool (#773)
Following up on comments from the first iteration of this change. How
does this look?
2022-12-09 10:59:00 +00:00
hexoscott
9f72de1e9d
txpool to mark candidate txs for mining (#772)
as we're now visiting the txpool multiple times during mining we need a
way to ensure we're not trying to include the same transactions twice
and to only get new data each time. This seems a simple way to achieve
this, but if there would be a better way let me know.
2022-12-09 09:51:50 +00:00
Alex Sharov
3cf9b451e1
mdbx: runtime options are changeable in Ascedee mode (#771) 2022-12-07 17:10:32 +07:00
Alex Sharov
263a9e3583
mdbx: dirtySpace option expose (#770) 2022-12-07 16:35:55 +07:00
Alex Sharov
0c5a850177
mdbx bindings: remove txn.RawRead field (#769) 2022-12-07 13:08:51 +07:00
Alex Sharov
c9972dbc8f
e3: no wal support (#768) 2022-12-07 12:15:09 +07:00
Alex Sharov
2dcec83222
mdbx: add BeginRwAsync method (#767) 2022-12-07 11:19:08 +07:00
alex.sharov
bf912d4eaa save 2022-12-07 10:31:14 +07:00
alex.sharov
3cd34cc900 Revert "save"
This reverts commit 00bb99d66d.
2022-12-06 12:29:12 +07:00
alex.sharov
00bb99d66d save 2022-12-06 12:28:53 +07:00
Max Revitt
183856e788
Withdrawals - Database (#758)
Adds withdrawals bucket to db.
2022-12-05 17:44:07 +00:00
Giulio rebuffo
c5f3972276
added getStatus (#762) 2022-12-05 03:55:18 +01:00
Alex Sharov
81be3e5d74
e3: buildFiles: return error when can (#763) 2022-12-04 16:19:49 +07:00
Håvard Anda Estensen
5a1726b107
Avoid leaking the popped item (#760)
Set the deleted item to its zero val so it can be garbage collected.
2022-12-04 16:19:09 +07:00
Håvard Anda Estensen
9d5f02ce76
Use hex package to convert bytes to string (#761)
From my
[benchmarks](https://github.com/estensen/benchmarks/blob/master/encoding/encoding.go)
it's a lot faster. Especially for few bytes.

```

cpu: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_1_byte-12         	12689306	        89.64 ns/op	      26 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_1_byte-12  	80529291	        14.74 ns/op	       2 B/op	       1 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_5_bytes-12        	10836607	       108.2 ns/op	      40 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_5_bytes-12 	42891154	        28.82 ns/op	      16 B/op	       1 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_10_bytes-12       	 9706875	       119.8 ns/op	      48 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_10_bytes-12         	31689613	        33.88 ns/op	      24 B/op	       1 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_50_bytes-12                	 5202006	       210.4 ns/op	     136 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_50_bytes-12         	10616301	       109.5 ns/op	     224 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_100_bytes-12               	 5614594	       210.9 ns/op	     136 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_100_bytes-12        	10426776	       108.6 ns/op	     224 B/op	       2 allocs/op
```
2022-12-04 16:17:37 +07:00
Alex Sharov
bee082f614
log experiment enabling (#759) 2022-12-03 12:56:12 +07:00
Alex Sharov
8a6090bcb7
e3: optimize incremental hashstate (#756) 2022-12-03 12:22:38 +07:00